home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Format (PL) 2013 August
/
PC_Format_082013.iso
/
pene wersje
/
website x5 home 10
/
wsx5_home.exe
/
{app}
/
Res
/
x5engine.deferrable.js
< prev
next >
Wrap
Text File
|
2013-05-29
|
185KB
|
6 lines
(function(a,b){"use strict",a.extend(b,{imAccess:{showLogout:function(){var c=a(".imLogout");if(c.length===0)return;c.empty(),b.utils.isOnline()?a.imCookie("im_access_cookie_uid")!==null&&a.imCookie("im_access_cookie_uid")!==""&&c.append('<a class="imLogoutLink" href="'+b.settings.currentPath+'res/imlogout.php">'+b.l10n.get("private_area_logout")+"</a>"):c.append('<a class="imLogoutLink" href="#">'+b.l10n.get("private_area_logout")+"</a>")}}})})(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imAdv:{width:null,height:null,callback:function(){return!1},callbackHandler:function(){b.imAdv.callback.call(a("#imWebSiteX5Adv"))},imShowAdv:function(c,d,e,f,g){var h="imWebSiteX5Adv",i=/MSIE [6]/.test(navigator.userAgent),j=c,k=c,l='<div id="'+h+'" style="height: '+k/4+"px; width: "+j/4+'px;">',m=b.utils.isOnline()?0:1,n=null,o="",p=!1;b.imAdv.width=c,b.imAdv.height=c,a.isFunction(g)?b.imAdv.callback=g:o=g,i?a("body").append(l+'<object id="'+h+'Obj" style="left: -'+parseInt(j-j/4,10)+'px" data="res/x5ad.swf?File='+e+"&SoundFile="+window.escape(f)+"&Url="+o+"&Scale="+d+"&Preview="+m+'" '+'type="application/x-shockwave-flash" width="'+j+'" height="'+k+'">'+'<param name="movie" value="x5advcorner.swf?File='+e+"&Url="+o+"&SoundFile="+f+"&Scale="+d+"&Preview="+m+'">'+'<param name="wmode" value="transparent">'+'<param name="menu" value="false">'+'<param name="allowscriptaccess" value="samedomain">'+'<param name="quality" value="high">'+'<param name="flashvars" value="Licence=Only_For_Incomedia_WebSiteX5&Copyrights=WebSiteX5.com">'+"</object></div>"):a("body").append(l+'<embed id="'+h+'Obj" style="left: -'+parseInt(j-j/4,10)+'px" src="res/x5ad.swf?File='+e+"&SoundFile="+window.escape(f)+"&Url="+o+"&Scale="+d+"&Preview="+m+'" '+'type="application/x-shockwave-flash" width="'+j+'" height="'+k+'" wmode="transparent" menu="false" '+'allowscriptaccess="samedomain" quality="high" flashvars="Licence=Only_For_Incomedia_WebSiteX5&Copyrights=WebSiteX5.com">'+"</embed></div>"),n=a("#"+h).css({padding:0,margin:0});if(m){var q=a("#"+h+"Obj"),r=function(){n.width(j).height(k),q.css("left",0)},s=function(){n.unbind("mouseleave"),p=!0,setTimeout(function(){n.mouseleave(s).width(parseInt(j/4,10)).height(parseInt(k/4,10)),q.css("left",parseInt(j/4-j,10)),n.html(n.html()),q=a("#"+h+"Obj")},800)};n.mouseleave(s).mouseenter(r)}n.css({zIndex:b.settings.zIndex.splashBox})},imSetSize:function(c,d,e){d===0?(e&&a("#"+c).html(a("#"+c).html()),a("#"+c).width(parseInt(b.imAdv.width/4,10)).height(parseInt(b.imAdv.height/4,10)),a("#"+c+"Obj").css("left",parseInt(b.imAdv.width/4-b.imAdv.width,10))):(a("#"+c).width(b.imAdv.width).height(b.imAdv.height),a("#"+c+"Obj").css("left",0))}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imAlertBox:function(c){var d=b.settings.imAlertBox;c=a.extend(!0,{link:d.link,cookie:d.cookie,position:d.position,image:d.image,sound:d.sound},c);var e="imAlertBox",f='<div id="'+e+'"><div id="alertplayer"></div><div style="text-align: center; overflow: hidden;" class="imgContainer"><a href="#"><img class="imAdvTarget"/></a></div><div class="closeAlBox"><img src="res/imClose.png" style="width: 20px;" /></div></div>',g=null,h=null,i=a("body"),j=null,k=null,l=null,m=null,n=function(){!c.sound||(m=b.mediaPlayer({url:c.sound,target:a("#"+e+" #alertplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0}))},o=function(){j.height(a("#"+e).outerHeight())},p=function(){!c.link||g.find(".imgContainer a").click(function(){a.isFunction(c.link)?c.link.call(this):location.href=c.link})},q=function(){!c.cookie||a.imCookie("im_alert","true",{expires:0,path:"/"})};if(c.cookie&&a.imCookie("im_alert")=="true"&&b.utils.isOnline())return!1;if(c.position=="top")i.prepend(f),k=a("#"+e+" img.imAdvTarget"),g=a("#"+e),g.length>0&&(g.slideUp(0).addClass("alertBox"),h=function(){!m||m.Stop(),g.slideUp(500,function(){g.remove()}),j.slideUp(500)},k.one("load",function(){j=a('<div id="'+e+'_fake"></div>'),i.prepend(j),o(),j.slideUp(0).css({position:"relative",right:0,left:0,top:0}),g.css({position:"absolute",right:0,left:0,top:0,zIndex:b.settings.zIndex.splashBox,"border-top-width":0}),n(),p(),j.slideDown(500),g.slideDown(500),q()}),k.mouseenter(function(){k.attr("src",c.image).mouseleave(function(){k.attr("src",c.image).unbind("mouseleave")})}).attr("src",c.image),a(".closeAlBox").click(h),a(window).unbind("resize",o).resize(o));else{i.append(f),k=a("#"+e+" img.imAdvTarget"),l=a("#"+e+" .imgContainer"),g=a("#"+e);if(g.length>0){g.addClass("alertBox").css({position:"fixed",bottom:-1e3,left:0,right:0,zIndex:b.settings.zIndex.splashBox}),h=function(){!m||m.Stop(),g.animate({bottom:-a("#"+e+" img").outerHeight(),height:a("#"+e+" img").outerHeight()},{duration:500,complete:function(){g.remove()}})};var r=function(){k.one("load",function(){a([l,g]).stop(!1,!1).animate({height:k.outerHeight()}),k.mouseleave(s)}).attr("src",c.img_big)},s=function(){k.unbind("load mouseleave").attr("src",c.image),a([l,g]).animate({height:k.outerHeight()})};k.one("load",function(){!c.sound||(m=b.mediaPlayer({url:c.sound,target:a("#"+e+" #alertplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0})),g.css({bottom:-a("#"+e+" img").outerHeight(),"border-bottom-width":0}),l.css({height:k.outerHeight()}),g.stop(!0,!0).animate({bottom:0,height:k.outerHeight()},{duration:500}),n(),p(),q()}),c.img_big&&k.mouseenter(r),k.attr("src",c.image),a(".closeAlBox").click(h)}}}})}(_jq,x5engine),function(a){function f(){return(new Date).getTime()}"use strict";var b="x5enginepause",c=1,d={},e=a.fn.animate;a.fn.animate=function(g,h,i,j){var k=a.speed(h,i,j);return k.complete=k.old,this.each(function(){this[b]||(this[b]=c++);var h=a.extend({},k);e.apply(a(this),[g,h]),d[this[b]]={start:f(),run:!0,opt:h,prop:g,done:0}})},a.fn.pauseAnim=function(){return this.each(function(){this[b]||(this[b]=c++);var e=d[this[b]];e&&e.run&&(e.done+=f()-e.start,e.done>e.opt.duration?delete d[this[b]]:(a(this).stop(),e.run=!1))})},a.fn.resAnim=function(){return this.each(function(){this[b]||(this[b]=c++);var g=d[this[b]];g&&!g.run&&(g.opt.duration-=g.done,g.done=0,g.run=!0,g.start=f(),e.apply(a(this),[g.prop,g.opt]))})}}(_jq),function(a,b){"use strict",a.extend(b,{bgStretch:function(c,d){var e=a("<div />").css({position:"fixed",top:0,left:0,bottom:0,right:0,"z-index":0});a("body").prepend(e),b.divBgStretch(e,c,!1,"top")},divBgStretch:function(c,d,e,f){var g,h,i,j=0,k=0,l=0,m=0,n=0,o=0,p=0;e=e===undefined||e===null?!0:e,f=f?f:"center",(g=b.utils.supportsCSS("backgroundSize"))||(c=a(c),h=a("<div />").css("overflow","hidden"),i=a("<img />").css({position:"absolute",top:-1e4}),a("body").append(i),i.one("load",function(){l=c.width(),m=c.height(),p=l,o=m,n=i.height()/i.width(),i.detach(),c.prepend(h),h.append(i),function b(){c.css("position")=="static"&&c.css("position","relative"),c.children().each(function(){var b=a(this);b.css("position")=="static"&&b.css("position","relative")}),h.width(p).height(o).css({position:"absolute",top:0,left:0}),e?i.css({top:0,left:0}).width(p).height(o):(j=p,k=p*n,o>k&&(k=o,j=o/n),i.width(j).height(k).css({top:f=="top"?0:(o-k)/2,left:(p-j)/2}),setTimeout(function(){p=c.width(),o=c.height();if(p!=l||o!=m)b(),l=p,m=o},250))}()}).attr("src",d))},eventBinder:function(b,c,d){var e=!1;a(b).each(function(){var b=a(this),f=function(c){var d;c||(c=window.event),c.target?d=c.target:c.srcElement&&(d=c.srcElement),d.nodeType==3&&(d=d.parentNode),d=a(d);var e=d.attr("id")===null||d.attr("id")===undefined;e&&d.attr("id","ident_friend_or_foe");var f=d.attr("id")==b.attr("id")&&d.get(0).tagName==b.get(0).tagName;return e&&d.attr("id",""),f},g=function(d){f(d)&&(a.isFunction(c)?c.apply(b):typeof c=="string"&&c.indexOf("http")===0&&(location.href=c))},h=function(c){f(c)&&!e&&(e=!0,a.isFunction(d)?d.apply(b):typeof d=="string"&&d.indexOf("http")===0&&(location.href=d))},i=function(a){e=!1};c!==null&&c!==undefined&&b.click(g),d!==null&&d!==undefined&&b.mouseover(h).mouseout(i)})}})}(_jq,x5engine),function(a,b){"use strict",a.imCookie=function(b,c,d){if(c===null||c===undefined){var j=null;if(document.cookie&&document.cookie!==""){var k=document.cookie.split(";");for(var l=0;l<k.length;l++){var m=a.trim(k[l]);if(m.substring(0,b.length+1)==b+"="){j=decodeURIComponent(m.substring(b.length+1));break}}}return j}d=d||{};if(d.expires===null||d.expires===undefined)d.expires=60;c===null&&(c="",d.expires=-1);var e="";if(d.expires&&(typeof d.expires=="number"||d.expires.toUTCString)){var f;typeof d.expires=="number"?(f=new Date,f.setTime(f.getTime()+d.expires*24*60*60*1e3)):f=d.expires,e="; expires="+f.toUTCString()}var g=d.path?"; path="+d.path:"",h=d.domain?"; domain="+d.domain:";",i=d.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(c),e,g,h,i].join("")}}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imDatePicker:function(c,d){var e,f=b.l10n.get("date_months"),g=b.l10n.get("date_full_months"),h=b.l10n.get("date_days"),i=b.l10n.get("date_full_days"),j=function(a,b){var c=[],d=!1,e=0,f;while(!d&&e<b.length)a.indexOf(b.charAt(e))!=-1&&(d=!0),e++;if(!d||b.length===0)return[a];f=a.split(b.charAt(0));for(e=0;e<f.length;e++)c=c.concat(j(f[e],b.substring(1)));return c},k=function(){var e=a(c).val(),f=d.format,g=null,h;if(e!==""){g=f.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[\\wìòàùèé']+").replace(/\[MM\]/g,"[\\wìòàùèé']+").replace(/\[D\]/g,"[\\wìòàùèé']+").replace(/\[M\]/g,"[\\wìòàùèé']+"),g="^"+g+"$",h=new RegExp(g);if(!h.test(e))return!1;f=f.replace("[M]","").replace("[D]","").replace("[MM]","").replace("[DD]","").replace("[yy]","").replace("[yyyy]","").replace("[mm]","").replace("[dd]","");var i=j(d.format,f),k=j(e,f),l="",m="",n="",o,p,q;for(q=0;q<i.length;q++)switch(i[q]){case"[M]":o=b.l10n.get("date_months");for(p=0;p<o.length;p++)o[p].toLowerCase()==k[q].toLowerCase()&&(l=p+1);break;case"[MM]":o=b.l10n.get("date_full_months");for(p=0;p<o.length;p++)o[p].toLowerCase()==k[q].toLowerCase()&&(l=p+1);break;case"[D]":o=b.l10n.get("date_days");for(p=0;p<o.length;p++)o[p].toLowerCase()==k[q].toLowerCase()&&(m=p+1);break;case"[DD]":o=b.l10n.get("date_full_days");for(p=0;p<o.length;p++)o[p].toLowerCase()==k[q].toLowerCase()&&(m=p+1);break;case"[yy]":n="20"+k[q];break;case"[yyyy]":n=k[q];break;case"[mm]":l=k[q];break;case"[dd]":m=k[q]}return new Date(n,l-1,m)}return!1},l=function(){var a="<table>",b;a+="<tr>";for(var c=0;c<h.length;c++)b=c+d.start,b>6&&(b-=7),a+='<td class="imDPhead">'+h[b]+"</td>";a+="</tr>";var f=new Date(d.date.getYear(),d.date.getMonth(),d.date.getDate());f.setFullYear(d.date.getFullYear()),f.setDate(1);var g=parseInt(f.getDay(),10);g-=d.start,g<=0&&(g+=7);var i=parseInt(f.getMonth(),10),j=0;while(f.getMonth()==i){a+="<tr>";for(c=1;c<=7;c++){var k="day";if(c+7*j>=g&&f.getMonth()==i){var l=c-g+1+7*j;l==e.getDate()&&f.getMonth()==e.getMonth()&&(k+=" selDay"),a+='<td class="'+k+'">'+l+"</td>",f.setDate(f.getDate()+1)}else a+="<td></td>"}a+="</tr>",j++}return a+="</table>",a},m=function(j,k){k?(d.date.setFullYear(k.getFullYear()),d.date.setMonth(k.getMonth()),d.date.setDate(k.getDate()),e.setFullYear(k.getFullYear()),e.setMonth(k.getMonth()),e.setDate(k.getDate())):(d.date.setDate(a(this).html()),e.setFullYear(d.date.getFullYear()),e.setMonth(d.date.getMonth()),e.setDate(a(this).html()));var l=d.date.getFullYear().toString(),m=b.utils.imFormatInt(parseInt(d.date.getDate(),10)),n=b.utils.imFormatInt(parseInt(d.date.getMonth(),10)+1),o=d.format.replace(/\[yyyy\]/g,l);o=o.replace(/\[yy\]/g,l.substring(2)).replace(/\[mm\]/g,n).replace(/\[dd\]/g,m).replace(/\[D\]/g,parseInt(e.getDay(),10)-1>=0?h[parseInt(e.getDay(),10)-1]:h[6]).replace(/\[DD\]/g,parseInt(e.getDay(),10)-1>=0?i[parseInt(e.getDay(),10)-1]:i[6]).replace(/\[M\]/g,f[parseInt(e.getMonth(),10)]).replace(/\[MM\]/g,g[parseInt(e.getMonth(),10)]),a(c).attr("value",o),r()},n=function(){d.date.setMonth(d.date.getMonth()+1),a("#imDPcal").empty().append(l()),a("#imDPMonth").empty().append(g[parseInt(d.date.getMonth(),10)]+" "+d.date.getFullYear().toString()),a(".day").click(m)},o=function(){d.date.setMonth(d.date.getMonth()-1),a("#imDPcal").empty().append(l()),a("#imDPMonth").empty().append(g[parseInt(d.date.getMonth(),10)]+" "+d.date.getFullYear().toString()),a(".day").click(m)},p=function(c,f){var h=k();!h||(d.date.setFullYear(h.getFullYear()),d.date.setMonth(h.getMonth()),d.date.setDate(h.getDate()),e.setFullYear(h.getFullYear()),e.setMonth(h.getMonth()),e.setDate(h.getDate()));var i='<div id="imDatePicker">',j=d.vDay,p=d.vMonths;i+='<div id="imDPHead"><span id="imDPleft"><</span><span id="imDPMonth"> </span><span id="imDPright">></span></div>',i+='<div id="imDPcal">'+l()+"</div>",i+="</div>",a("body").append('<div id="imDPBG"></div>'),a("#imDPBG").css({position:"fixed",width:a(window).width(),height:a(window).height(),top:0,left:0,zIndex:b.settings.zIndex.datePicker+1}),a("#imDPBG").click(r),a("body").append(i),d.shadow===!0&&a("#imDatePicker").css("box-shadow","0px 0px 3px #000"),a("#imDPMonth").append(g[parseInt(e.getMonth(),10)]+" "+e.getFullYear().toString()),a("#imDPleft").click(o),a("#imDPright").click(n),a(".day").click(m),c+a("#imDatePicker").width()>a(window).width()+a(window).scrollLeft()&&(c=a(window).width()-a("#imDatePicker").outerWidth()-5+a(window).scrollLeft()),f+a("#imDatePicker").height()>a(window).height()+a(window).scrollTop()&&(f=a(window).height()-a("#imDatePicker").outerHeight()-5+a(window).scrollTop()),a("#imDatePicker").fadeOut(0),a("#imDatePicker").css({top:f,left:c}),/IE 7/.test(navigator.userAgent)||(a("#imDatePicker").css("border-radius","5px"),a("#imDatePicker #imDPHead").css("border-radius","5px"),a("#imDatePicker #imDPHead").css("background","-webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255,255,255)), color-stop(1, rgb(193,203,213)))"),a("#imDatePicker #imDPHead").css("background","-moz-linear-gradient( center bottom, rgb(255,255,255) 0%, rgb(193,203,213) 100%"),a("#imDatePicker .day").css("background","-webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(245,245,245)), color-stop(1, rgb(255,255,255)))"),a("#imDatePicker .day").css("background","-moz-linear-gradient( center bottom, rgb(245,245,245) 0%, rgb(255,255,255) 100%)"),a("#imDatePicker .selDay").css("background","-webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(255,240,128)), color-stop(1, rgb(255,255,255)))"),a("#imDatePicker .selDay").css("background","-moz-linear-gradient( center bottom, rgb(255,240,128) 0%, rgb(255,255,255) 100% )")),a("#imDatePicker").css({zIndex:b.settings.zIndex.datePicker+2}).fadeIn(200)},q=function(b){a("#imDatePicker").length>0?a("#imDatePicker").fadeOut(200,function(){a("#imDatePicker").remove(),p(b.pageX,b.pageY)}):p(b.pageX,b.pageY)},r=function(){a("#imDPBG").remove(),a("#imDatePicker").fadeOut(200,function(){a("#imDatePicker").remove()})};d=d||{},d.icon==null&&(d.icon=!0),d.start=d.start||0,d.shadow==null&&(d.shadow=!0),d.start<0&&(d.start+=7),d.format=d.format||b.l10n.get("date_format"),d.date===null||d.date===""||d.date===undefined?d.date=new Date:d.date=new Date(d.date.substring(6),parseInt(d.date.substring(3,5),10)-1,d.date.substring(0,2)),e=new Date(d.date.getFullYear(),d.date.getMonth(),d.date.getDate());if(d.icon){var s=document.createElement("span");s=a(s),a(c).after(s),s.empty().append('<img src="res/date.gif" style="cursor: pointer;" class="imDatePickerIcon"/>'),s.find("img").css({marginTop:Math.floor(s.prev("input").outerHeight()-15)/2+1}),s.click(q)}else a(c).click(q);a(c).bind("change",function(){var a=k();a!==!1&&m(null,a)}),a(c).click(function(){a(this).removeClass(b.imForm.constants.mark)})}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{setupDateTime:function(){var c=b.dateTime;c(a(".imHour"),"hour"),c(a(".imNow"),"now")},dateTime:function(c,d){c=a(c);var e=b.l10n.get,f=e("date_days"),g=e("date_months"),h=e("date_full_months"),i=e("date_full_days"),j=e("date_format"),k=b.utils.imFormatInt,l="";if(d!="hour"&&d!="now"){c.html(d);return}switch(d){case"hour":(function m(){var a=new Date;c.html(k(a.getHours())+":"+k(a.getMinutes())+":"+k(a.getSeconds())+" "),setTimeout(m,1e3)})();break;case"now":(function n(){var a=new Date,d=a.getFullYear().toString(),e=b.utils.imFormatInt(parseInt(a.getDate(),10)),k=b.utils.imFormatInt(parseInt(a.getMonth(),10)+1);l=j.replace(/\[yyyy\]/g,d).replace(/\[yy\]/g,d.substring(2)).replace(/\[aaaa\]/g,d).replace(/\[aa\]/g,d.substring(2)).replace(/\[mm\]/g,k).replace(/\[dd\]/g,e).replace(/\[D\]/g,parseInt(a.getDay(),10)-1>=0?f[parseInt(a.getDay(),10)-1]:f[6]).replace(/\[DD\]/g,parseInt(a.getDay(),10)-1>=0?i[parseInt(a.getDay(),10)-1]:i[6]).replace(/\[M\]/g,g[parseInt(a.getMonth(),10)]).replace(/\[MM\]/g,h[parseInt(a.getMonth(),10)]),c.html(l),setTimeout(n,6e4)})()}}})}(_jq,x5engine),function(a,b){"use strict",a.fn.loudStop=function(b,c){return a(this).trigger("loudStop").stop(b,c),this},a.extend(a.easing,{iOsSwing:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},elasticIn:function(a,b,c,d,e){var f=1.70158,g=0,h=d;return b===0?c:(b/=e)==1?c+d:(g||(g=e*.3),h<Math.abs(d)?(h=d,f=g/4):f=g/(2*Math.PI)*Math.asin(d/h),h*Math.pow(2,-11*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c)},elasticOut:function(a,b,c,d,e){var f=1.70158,g=0,h=d;return b===0?c:(b/=e)===1?c+d:(g||(g=e*.3),h<Math.abs(d)?(h=d,f=g/4):f=g/(2*Math.PI)*Math.asin(d/h),-(h*Math.pow(2,11*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c)},bounceIn:function(b,c,d,e,f){return e-a.easing.bounceOut(b,f-c,0,e,f)+d},bounceOut:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutSwing:function(a,b,c,d,e){return b===0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},imBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c}}),a.extend(!0,b,{effects:{none:{animateIn:function(b,c,d,e,f){b.DOMObject().width(c.width).height(c.height).css({position:"absolute",top:c.y,left:c.x}).loudStop(!1,!1).show(0),a.isFunction(e)&&e(b)},animateOut:function(b,c,d,e){b.DOMObject().loudStop(!1,!1).hide(0),a.isFunction(d)&&d(b)}},fade:{animateIn:function(b,c,d,e,f){d=a(d),b.DOMObject().width(c.width).height(c.height).css({position:"absolute",top:c.y,left:c.x,display:"none"}).loudStop(!1,!1).fadeIn(500,function(){a.isFunction(e)&&e(b)})},animateOut:function(b,c,d,e){b.DOMObject().loudStop(!1,!1).fadeOut(500,function(){a.isFunction(d)&&d(b)})}},horizontalSlide:{animateIn:function(b,c,d,e,f){d=a(d),b.DOMObject().width(c.width).height(c.height).css({position:"absolute",top:c.y,left:f?-c.width:d.width()}).show(0).loudStop(!1,!1).animate({left:c.x},{duration:500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?c.width():-f.width()},{duration:500,complete:function(){a.isFunction(d)&&d(b)}})}},horizontalSlideSwing:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),b.DOMObject().width(c.width).height(c.height).css({position:"absolute",top:c.y,left:f?-c.width:d.width()}).show(0).loudStop(!1,!1).animate({left:c.x},{duration:2e3,easing:"easeInOutSwing",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?c.width():-f.width()},{duration:2e3,easing:"easeInOutSwing",complete:function(){a.isFunction(d)&&d(b)}})}},verticalSlide:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?d.height():-c.height}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{duration:500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({top:e?-b.Height():c.height()},{duration:500,complete:function(){a.isFunction(d)&&d(b)}})}},verticalSlideSwing:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?d.height():-c.height}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{duration:2e3,easing:"easeInOutSwing",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({top:e?-b.Height():c.height()},{duration:2e3,easing:"easeInOutSwing",complete:function(){a.isFunction(d)&&d(b)}})}},zoom:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.css({position:"absolute",top:d.height()/2,left:d.width()/2}).width(1).height(1),g.fadeIn(0),g.loudStop(!1,!1).animate({top:c.y,left:c.x,width:c.width,height:c.height},{duration:500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({top:c.height()/2,left:c.width()/2,width:1,height:1},{duration:500,complete:function(){a.isFunction(d)&&d(b)}})}},elasticFromTop:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?d.height():-c.height}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{easing:"elasticIn",duration:1500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).fadeOut(500,function(){a.isFunction(d)&&d(b)})}},elasticFromBottom:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?-c.height:d.height()}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{easing:"elasticIn",duration:500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).fadeOut(500,function(){a.isFunction(d)&&d(b)})}},elasticFromLeft:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",top:c.y,left:f?d.width():-c.width}),g.show(0),g.loudStop(!1,!1).animate({left:c.x},{duration:1500,easing:"elasticIn",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?-f.width():c.width()},{duration:1500,easing:"elasticIn",complete:function(){a.isFunction(d)&&d(b)}})}},elasticFromRight:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",top:c.y,left:f?-c.width:d.width()}),g.show(0),g.loudStop(!1,!1).animate({left:c.x},{duration:1500,easing:"elasticIn",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?c.width():-f.width()},{duration:1500,easing:"elasticIn",complete:function(){a.isFunction(d)&&d(b)}})}},bounceFromRight:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",top:c.y,left:f?-c.width:d.width()}),g.show(0),g.loudStop(!1,!1).animate({left:c.x},{duration:1e3,easing:"bounceOut",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?c.width():-f.width()},{duration:1e3,easing:"bounceOut",complete:function(){a.isFunction(d)&&d(b)}})}},bounceFromLeft:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",top:c.y,left:f?d.width():-c.width}),g.show(0),g.loudStop(!1,!1).animate({left:c.x},{duration:1e3,easing:"bounceOut",complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({left:e?-f.width():c.width()},{duration:1e3,easing:"bounceOut",complete:function(){a.isFunction(d)&&d(b)}})}},bounceFromTop:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?d.height():-c.height}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{easing:"bounceOut",duration:1500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({top:e?-f.height():c.height()},{duration:1500,easing:"bounceOut",complete:function(){a.isFunction(d)&&d(b)}})}},bounceFromBottom:{animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.width(c.width).height(c.height),g.css({position:"absolute",left:c.x,top:f?-c.height:d.height()}),g.show(0),g.loudStop(!1,!1).animate({top:c.y},{easing:"bounceOut",duration:1500,complete:function(){a.isFunction(e)&&e(b)}})},animateOut:function(b,c,d,e){var f=b.DOMObject();c=a(c),f.loudStop(!1,!1).animate({top:e?c.height():-f.height()},{duration:1500,easing:"bounceOut",complete:function(){a.isFunction(d)&&d(b)}})}},rotateLinear:{animateIn:function(c,d,e,f,g){var h=c.DOMObject(),i=b.utils.supportsCSS("transform"),j=b.utils.supportsCSS("transformOrigin");if(i&&j){h.loudStop(!1,!1).css({top:d.y,left:d.x,"-my-anim-step":0}).width(d.width).height(d.height);var k=g?-90:90;h.css(j,"0% 0%").fadeIn(0),h.animate({"-my-anim-step":100},{step:function(a,b){h.css(i,"rotate("+Math.floor(k-k*a/100)+"deg)")},complete:function(){a.isFunction(f)&&f(c)}})}else b.effects.fade.animateIn(c,d,e,f,g)},animateOut:function(c,d,e,f){var g=c.DOMObject(),h=b.utils.supportsCSS("transform"),i=b.utils.supportsCSS("transformOrigin");if(h&&i){g.loudStop(!1,!1).css("-my-anim-step",0);var j=f?90:-90;g.css(i,"0% 0%").fadeIn(0),g.animate({"-my-anim-step":100},{step:function(a,b){g.css(h,"rotate("+Math.floor(j*a/100)+"deg)")},complete:function(){a.isFunction(e)&&e(c)}})}else b.effects.fade.animateOut(c,d,e,f)}},rotateZoom:{animateIn:function(c,d,e,f,g){var h=c.DOMObject(),i=b.utils.supportsCSS("transform");if(i){var j=-1e3;h.css({position:"absolute",top:e.height()/2,left:e.width()/2,"-my-anim-step":0}).width(1).height(1).fadeIn(0),h.loudStop(!1,!1).animate({top:d.y,left:d.x,width:d.width,height:d.height,"-my-anim-step":100},{duration:500,step:function(a,b){h.css(i,"rotate("+Math.floor(j%360-j%360*a/100)+"deg)")},complete:function(){a.isFunction(f)&&f(c)}})}else b.effects.zoom.animateIn(c,e,f,g)},animateOut:function(c,d,e,f){var g=c.DOMObject(),h=b.utils.supportsCSS("transform");if(h){var i=1e3;g.css("-my-anim-step",0),g.loudStop(!1,!1).animate({top:d.height()/2,left:d.width()/2,width:1,height:1,"-my-anim-step":100},{duration:500,step:function(a,b){g.css(h,"rotate("+Math.floor(i%360*a/100)+"deg)")},complete:function(){a.isFunction(e)&&e(c)}})}else b.effects.zoom.animateOut(c,d,e,f)}},carousel:{animateIn:function(c,d,e,f,g){var h=c.DOMObject(),i=b.utils.supportsCSS("transform"),j=b.utils.supportsCSS("transformOrigin");if(i&&j){h.loudStop(!1,!1).css({top:d.y,left:d.x,"-my-anim-step":0}).width(d.width).height(d.height);var k=g?90:-90;h.fadeIn(0),h.css(j,(h.width()-e.width())/2+"px 50%"),h.animate({"-my-anim-step":100},{step:function(a,b){h.css(i,"perspective(600px) rotateY("+Math.floor(k-k*a/100)+"deg)")},complete:function(){a.isFunction(f)&&f(c)}})}else b.effects.fade.animateIn(c,d,e,f,g)},animateOut:function(c,d,e,f){var g=c.DOMObject(),h=b.utils.supportsCSS("transform"),i=b.utils.supportsCSS("transformOrigin");if(h&&i){g.loudStop(!1,!1).css("-my-anim-step",0);var j=f?-90:90;g.fadeIn(0),g.css(i,(g.width()-d.width())/2+"px 50%"),g.animate({"-my-anim-step":100},{step:function(a,b){g.css(h,"perspective(600px) rotateY("+Math.floor(j*a/100)+"deg)")},complete:function(){a.isFunction(e)&&e(c)}})}else b.effects.fade.animateOut(c,d,e,f)}},verticalSlices:{animateIn:function(c,d,e,f,g){if(c.Type()!="image"){b.effects.fade.animateIn(c,d,e,f,g);return}var h=c.DOMObject(),i=a(null),j=5,k=80,l=c.Width()/j,m=h.attr("src");h.loudStop(!1,!1).one("loudStop",function(){i.stop(!1,!1).remove(),i=a(null)});for(var n=0;n<j;n++)i=i.add(a("<div />").css({position:"absolute",top:d.y+e.height()*(g?1:-1),left:d.x+l*n,"background-image":'url("'+m+'")',"background-position":-(l*n)+"px 0px","background-size":l*j+"px "+c.Height()+"px",opacity:0}).width(l).height(c.Height()));h.hide(0).after(i),i.each(function(b){a(this).delay(b*k).animate({top:d.y},{duration:j*k,step:function(b,c){c.prop=="top"&&a(this).css("opacity",1+b/e.height()*(g?-1:1))},complete:function(){b==j-1&&i.length>0&&(h.css({position:"absolute",top:d.y,left:d.x}).width(d.width).height(d.height).show(0),i.remove(),f(c))}})})},animateOut:function(c,d,e,f){if(c.Type()!="image"){b.effects.fade.animateOut(c,d,e,f);return}var g=c.DOMObject(),h=a(null),i=5,j=80,k=c.Width()/i,l={x:g.css("left").replace(/px/,"")*1,y:g.css("top").replace(/px/,"")*1},m=g.attr("src");g.loudStop(!1,!1).hide(0).one("loudStop",function(){h.stop(!1,!1).remove(),h=a(null)});for(var n=0;n<i;n++)h=h.add(a("<div />").css({position:"absolute",top:l.y,left:l.x+k*n,"background-image":'url("'+m+'")',"background-position":-(k*n)+"px 0px","background-size":k*i+"px "+c.Height()+"px"}).width(k).height(c.Height()));g.after(h),h.each(function(b){a(this).delay(b*j).animate({top:l.y+d.height()*(f?-1:1)},{duration:i*j,step:function(b,c){c.prop=="top"&&a(this).css("opacity",1-b/d.height()*(f?-1:1))},complete:function(){b==i-1&&h.length>0&&(h.remove(),e(c))}})}),e(c)}},scramble:{animateIn:function(c,d,e,f,g){if(c.Type()!="image"){b.effects.fade.animateIn(c,d,e,f,g);return}var h=c.DOMObject(),i=4,j=c.Width()/i,k=c.Height()/i,l=h.attr("src");h.loudStop(!1,!1).css({position:"absolute",top:d.y,left:d.x}).width(d.width).height(d.height).hide(0).one("loudStop",function(){m.stop(!1,!1).remove(),m=a(null)});var m=a(null);for(var n=0;n<i;n++)for(var o=0;o<i;o++){var p=Math.random()-.5>=0?e.width()+Math.random()*j:-Math.random()*j-j,q=Math.random()-.5>=0?e.height()+Math.random()*j:-Math.random()*k-k;m=m.add(a("<div />").css({position:"absolute",top:q,left:p,"background-image":'url("'+l+'")',"background-position":-j*o+"px -"+k*n+"px","background-size":j*i+"px "+k*i+"px"}).width(j).height(k).data("endposx",d.x+j*o).data("endposy",d.y+k*n))}h.after(m),m.each(function(b,d){var e=a(this);e.animate({top:e.data("endposy")*1,left:e.data("endposx")*1},{duration:1e3,complete:function(){b==m.length-1&&m.length>0&&(h.show(0),m.remove(),f(c))}})})},animateOut:function(c,d,e,f){if(c.Type()!="image"){b.effects.fade.animateOut(c,d,e,f);return}var g=c.DOMObject(),h=4,i=c.Width()/h,j=c.Height()/h,k=g.attr("src"),l={x:g.css("left").replace(/px/,"")*1,y:g.css("top").replace(/px/,"")*1};g.loudStop(!1,!1).hide(0).one("loudStop",function(){m.stop(!1,!1).remove(),m=a(null)});var m=a(null);for(var n=0;n<h;n++)for(var o=0;o<h;o++)m=m.add(a("<div />").css({position:"absolute",top:l.y+j*n,left:l.x+i*o,"background-image":'url("'+k+'")',"background-position":-i*o+"px -"+j*n+"px","background-size":i*h+"px "+j*h+"px"}).width(i).height(j));g.after(m),m.each(function(b,f){var h=Math.random()-.5>=0?d.width()+Math.random()*i:-Math.random()*i-i,k=Math.random()-.5>=0?d.height()+Math.random()*i:-Math.random()*j-j;a(this).animate({top:h,left:k},{duration:800,complete:function(){b==m.length-1&&m.length>0&&(g.hide(0),m.remove(),e(c))}})})}},squares:{animateIn:function(c,d,e,f,g){if(c.Type()!="image"){b.effects.fade.animateIn(c,d,e,f,g);return}var h=c.DOMObject(),i=4,j=c.Width()/i,k=c.Height()/i,l=h.attr("src"),m=a(null);h.loudStop(!1,!1).css({position:"absolute",top:d.y,left:d.x}).width(d.width).height(d.height).hide(0).one("loudStop",function(){m.stop(!1,!1).remove(),m=a(null)});for(var n=0;n<i;n++)for(var o=0;o<i;o++)m=m.add(a("<div />").css({position:"absolute",top:d.y+k*n,left:d.x+j*o,"background-image":'url("'+l+'")',"background-position":-j*o+"px -"+k*n+"px","background-size":j*i+"px "+k*i+"px",display:"none"}).width(j).height(k));h.after(m),m.each(function(b){a(this).delay(b*50).fadeIn(150,function(){b==m.length-1&&m.length>0&&(h.fadeIn(0),m.remove(),f(c))})})},animateOut:function(c,d,e,f){if(c.Type()!="image"){b.effects.fade.animateOut(c,d,e,f);return}var g=c.DOMObject(),h=4,i=c.Width()/h,j=c.Height()/h,k=g.attr("src"),l={x:g.css("left").replace(/px/,"")*1,y:g.css("top").replace(/px/,"")*1},m=a(null);g.loudStop(!1,!1).one("loudStop",function(){m.stop(!1,!1).remove(),m=a(null)});for(var n=0;n<h;n++)for(var o=0;o<h;o++)m=m.add(a("<div />").css({position:"absolute",top:l.y+j*n,left:l.x+i*o,"background-image":'url("'+k+'")',"background-position":-i*o+"px -"+j*n+"px","background-size":i*h+"px "+j*h+"px"}).width(i).height(j));g.after(m).hide(0),m.each(function(b){a(this).delay(b*50).fadeOut(150,function(){b==m.length-1&&m.length>0&&(m.remove(),e(c))})})}},flip:{animateIn:function(c,d,e,f,g){var h=c.DOMObject(),i=b.utils.supportsCSS("transform"),j=b.utils.supportsCSS("transformOrigin");if(i&&j&&c.Type()=="image"){h.loudStop(!1,!1).css({top:d.y,left:d.
x,"-my-anim-step":0}).width(d.width).height(d.height);var k=g?180:-180;h.fadeIn(0).css(j,"50% 50%"),h.animate({"-my-anim-step":100},{step:function(a,b){h.css(i,"perspective(600px) rotateY("+Math.floor(k-k*a/100)+"deg)"),h.css("opacity",a>50?(a-50)/50:0)},complete:function(){a.isFunction(f)&&f(c)}})}else b.effects.fade.animateIn(c,d,e,f,g)},animateOut:function(c,d,e,f){var g=c.DOMObject(),h=b.utils.supportsCSS("transform"),i=b.utils.supportsCSS("transformOrigin");if(h&&i&&c.Type()=="image"){g.loudStop(!1,!1).css("-my-anim-step",0);var j=f?-180:180;g.fadeIn(0).css(i,"50% 50%"),g.animate({"-my-anim-step":100},{step:function(a,b){g.css(h,"perspective(600px) rotateY("+Math.floor(j*a/100)+"deg)"),g.css("opacity",a>50?0:(50-a)/50)},complete:function(){a.isFunction(e)&&e(c)}})}else b.effects.fade.animateOut(c,d,e,f)}}}})}(_jq,x5engine),function(a,b,c,d){"use strict",d.settings.fallback.animFrame&&(b.requestAnimFrame=function(){return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){return b.setTimeout(function(){a((new Date).getTime())},1e3/60)}}(),b.cancelAnimFrame=function(){return b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.mozCancelAnimationFrame||b.oCancelAnimationFrame||b.msCancelAnimationFrame||function(a){b.clearTimeout(a)}}()),(/MSIE 7/.test(navigator.userAgent)||!("onhashchange"in b)&&d.settings.fallback.onhashchange)&&function e(a){var d=b.top.location.hash;d!=a&&c(b).triggerHandler("hashchange"),b.setTimeout(function(){e(d)},200)}(b.top.location.hash),d.settings.fallback.json&&(typeof JSON=="undefined"&&(this.JSON={}),typeof JSON.stringify!="function"&&(JSON.stringify=function(a){var b=typeof a;if(b!="object"||a===null)return b=="string"&&(a='"'+a+'"'),String(a);var c,d,e=[],f=a&&a.constructor==Array;for(c in a)d=a[c],b=typeof d,b=="string"?d='"'+d+'"':b=="object"&&d!==null&&(d=JSON.stringify(d)),e.push((f?"":'"'+c+'":')+String(d));return(f?"[":"{")+String(e)+(f?"]":"}")}),typeof JSON.parse!="function"&&(JSON.parse=function(a){if(a===null)return null;if(typeof a=="string"){a=c.trim(a);if(a&&/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,"@").replace(/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return(new Function("return "+a))()}throw"Invalid JSON: "+a})),!("localStorage"in b)&&d.settings.fallback.localStorage&&(b.localStorage={setItem:function(a,b){c.imCookie(a,b,{path:"/"})},getItem:function(a){return c.imCookie(a)},removeItem:function(a){c.imCookie(a,"",{path:"/"})},clear:function(){}})}(document,window,$,x5engine),function(a,b){"use strict",a.extend(b,{imForm:{constants:{mark:"imFormMark"},initForm:function(c,d,e){d=d||!1,e=a.extend(!0,{base:"",offlineMessage:""},e);var f=a(c);f.find("label").wrapInner("<span>"),f.append('<input type="hidden" value="jsactive" name="imJsCheck" />'),f.find("img").each(function(){a(this).bind("mouseover",function(){b.imTip.Show(a(this),{position:"top"})})}),d&&f.find(":input").each(function(){var b=a(this);a("#"+b.attr("id")+"_tip").length>0&&b.bind("focus click",function(){b.one("blur",function(){a("#"+b.attr("id")+"_tip").triggerHandler("mouseout")})})}),f.find("[class*=datePicker]").each(function(){a(this).attr("class").match(/datePicker\[(.*),([\d]{1})\]/),RegExp.$1!==""&&RegExp.$2!==""&&b.imDatePicker(a(this),{format:RegExp.$1.toString(),icon:parseInt(RegExp.$2,10)==1?!0:!1})}),a("[class*=valMaxLength], [class*=valLength]").each(function(){a(this).attr("class").match(/Length\[([0-9]+)\]/g);var b=RegExp.$1;a(this).keyup(function(){a(this).val(a(this).val().substring(0,b))})}),a("[class*=valNumber]").keypress(function(b){var c=b.charCode?b.charCode:b.keyCode;return c==8||c==37||c==39||c==46||c==9?!0:/^[0-9]+$/g.test(a(this).val()+String.fromCharCode(c))}),a("[class*=valDate]").keypress(function(b){var c=b.charCode?b.charCode:b.keyCode;return c==8||c==37||c==39||c==46||c==9?!0:/^[0-9\/\.]+$/g.test(a(this).val()+String.fromCharCode(c))}),a("[class*=valTelephone]").keypress(function(b){var c=b.charCode?b.charCode:b.keyCode;return c==8||c==37||c==39||c==46||c==9?!0:/^[0-9\s\-\(\)]+$/g.test(a(this).val()+String.fromCharCode(c))}),b.imForm.showFiles(c),b.imForm.setPagination(c,e),b.imForm.lockCopyPaste(c),b.utils.switchFocus(c),b.imForm.showCaptcha(c),b.imForm.setLabels(c,e),f.find("input[type=reset]").click(function(){return a("[tiptarget]").remove(),f.find("."+b.imForm.constants.mark).removeClass(b.imForm.constants.mark),f.find("."+b.imTip.constants.locked).removeClass(b.imTip.constants.locked),f.find("[class*=datePicker]").val("").attr("value",""),!0})},showFiles:function(b){/Chrome/.test(navigator.userAgent)&&a("input[type=file]").css({height:a(b).find("input[type=text]").innerHeight(),padding:0})},setLabels:function(b,c){a(b).find("input, textarea").not(":submit, :radio, :reset, :hidden, :button").each(function(){if(a(this).val()!==""&&a(this).prop("readonly")!==!0){var d,e,f=a(this);c=c||{},f.data("label",a(this).val()),c.labelColor&&f.css({color:c.labelColor}),f.is("input[type=password]")&&(d=f.attr("id")+"_fake",f.data("password",!0),f.after('<input type="text" class="'+f.attr("class").replace(/mandatory/g,"").replace(/equalTo\[[^\]]+\]/g,"")+'" style="'+f.attr("style")+'" value="'+f.data("label")+'" id="'+d+'"/>').fadeOut(0),e=a("#"+d),f.attr("value",""),e.focus(function(){e.fadeOut(0),f.fadeIn(0),f.focus()}),a(b).find("input[type=reset]").click(function(){f.fadeOut(0),e.fadeIn(0),setTimeout(function(){f.attr("value","")},500)})),f.focus(function(){f.data("password")&&e.fadeOut(0),f.val()==a(this).data("label")&&f.val(""),f.css({color:c.selectedFieldColor})}),f.blur(function(){f.val()===""?(f.data("password")&&(f.fadeOut(0),e.fadeIn(0)),f.val(f.data("label")),f.css({color:c.labelColor})):f.css({color:c.fieldColor})})}})},showCaptcha:function(c){var d="",e,f,g=a(c),h="",i;g.find("[class*=imCpt]").not("iframe").each(function(){var c=a(this),j=c.attr("class").match(/imCpt\[\]/);c.val(""),/imCpt\[([0-9]+)\]/.test(c.attr("class"))?(c.attr("class").match(/imCpt\[([0-9]+)\]/),i=RegExp.$1||5):(c.attr("class").match(/imCpt\[([0-9]+),\s*([^\]]+)\]/),i=RegExp.$1||5,h=RegExp.$2||""),i>9&&(i=9);for(f=0;f<i;f++){do e=parseInt(Math.random()*9,10);while(d.indexOf(e)>-1);d+=e}a("#"+c.attr("id")+"_imCptHdn").remove();if(b.utils.isOnline())a(".imFrame\\["+c.attr("id")+"\\]").remove(),c.before('<iframe style="display: block; margin: 3px auto 2px auto; width: 120px; height: 24px; border: 1px solid #BBBBBB" class="imFrame['+c.attr("id")+']" src="'+h+"captcha/imcaptcha.php?action=show&code="+d+'" frameborder="0" marginwidth="0" marginheight="0" width="120" height="24" scrolling="no"></iframe><input type="hidden" value="'+d+'" name="imCptHdn" id="'+c.attr("id")+'_imCptHdn"/>');else{a("#"+c.attr("id")+"_fakediv").remove();var k='<div id="'+c.attr("id")+'_fakediv" style="font-size: 8pt; font-family: Tahoma; margin: 3px auto 2px auto; width: 120px; height: 24px; border: 1px solid #BBBBBB">';for(f=0;f<d.length;f++)k+='<img src="'+h+b.settings.imCaptcha.offlineCodes[parseInt(d.charAt(f),10)].path+'" />';k+="</div>",k+='<input type="hidden" value="';for(f=0;f<d.length;f++)k+=b.settings.imCaptcha.offlineCodes[parseInt(d.charAt(f),10)].letter;k+='" name="imCptHdn" id="'+c.attr("id")+'_imCptHdn"/>',c.before(k)}a("#imContent").change(),g.find("input[type=reset]").click(function(){b.imForm.showCaptcha(g)})})},checkCaptcha:function(c){var d=c.prev("#"+c.attr("id")+"_imCptHdn").val(),e=c.val(),f="",g="",h=!1;return/imCpt\[([0-9]+),\s*([^\]]+)\]/.test(c.attr("class"))&&(c.attr("class").match(/imCpt\[([0-9]+),\s*([^\]]+)\]/),g=RegExp.$2||""),b.utils.isOnline()?a.ajax({url:g+"captcha/imcaptcha.php?action=check&code="+d+"&ans="+e,async:!1,cache:!1,success:function(a){h=a!="-1"}}):h=e.toLowerCase()==d.toLowerCase(),h},setPagination:function(c,d){var e=0,f=!1;d=d||{};var g=d.type||"tip",h=a(c),i="",j=function(d,e){var f=a(c+"_next"),g=a(c+"_prev"),i=a(c+"_submit");e=e||400,f.add(g).attr("disabled",!1),a("."+b.imTip.constants.classId).remove(),a("."+b.imForm.constants.mark).removeClass(b.imForm.constants.mark),d==1?(g.add(i).hide(0),f.show(0)):h.find("[pageCount="+(d+1)+"]").length===0?(g.add(i).show(0),f.hide(0)):g.add(f).show(0),h.find("fieldset").each(function(){var b=a(this);parseInt(b.attr("pageCount"),10)==d?b.css({display:"block",height:"auto"}).children("div").slideDown(e):b.children("div").slideUp(e,function(){b.height(0).css("display","none")})}),a(c+"_pageCounter").val(d)},k=function(){var d=parseInt(a(c+"_pageCounter").val(),10);b.imForm.validate(a("fieldset[pageCount="+d+"]"),{showAll:!0,paginate:!0,type:g})===!0&&(d++,h.find("[pageCount="+d+"]").length>0?j(d):h.submit())},l=function(){var b=parseInt(a(c+"_pageCounter").val(),10);--b>0&&(a(c+"_pageCounter").attr("value",b),j(b))},m=function(){h[0].reset(),j(1)};h.find("fieldset").each(function(){var b=a(this);b.hasClass("newPage")?(f=e!==0,e++):e===0&&e++,b.attr("pageCount",e)}),e>1?(h.append('<input type="hidden" name="'+c.replace("#","")+'_pageCounter" id="'+c.replace("#","")+'_pageCounter" value="1" />'),h.children("div:last").append('<input type="button" id="'+c.replace("#","")+'_prev" value="'+b.l10n.get("cart_goback")+'"/>'),h.children("div:last").append('<input type="button" id="'+c.replace("#","")+'_next" value="'+b.l10n.get("cart_gonext")+'"/>'),i=b.l10n.get("form_submit"),h.find("input[type=submit]").remove(),h.children("div:last").append('<input type="button" id="'+c.replace("#","")+'_submit" value="'+i+'"/>'),i=h.find("input[type=reset]").attr("value"),i&&(h.find("input[type=reset]").remove(),h.children("div:last").append('<input type="button" id="'+c.replace("#","")+'_reset" value="'+i+'"/>')),h.find(c+"_submit").fadeOut(0).css("margin-right","4px"),a(c+"_prev").click(l).css("margin-right","4px"),a(c+"_next").click(k).css("margin-right","4px"),j(1,1)):(i=h.find("input[type=submit]").attr("value"),h.find("input[type=submit]").after('<input type="button" id="'+c.replace("#","")+'_submit" value="'+i+'"/>'),h.find("input[type=submit]").remove()),a(c+"_reset").click(m),a(c+"_submit").click(function(){b.imForm.submit(c,d)}),h.submit(function(){return b.imForm.submit(c,d),!1})},lockCopyPaste:function(b){var c;a(b).find("input[class*=equalTo]").each(function(){var b=a(this).attr("class").split(" "),c=function(a){return a.preventDefault(),!1};for(var d=0;d<b.length;d++)if(b[d].substring(0,7)=="equalTo"){var e=b[d].substring(8,b[d].length-1);a("#"+e).bind("contextmenu cut copy paste",c)}}),a(b).find("input[class*=equalTo]").bind("contextmenu cut copy paste",function(a){return a.preventDefault(),!1})},validate:function(c,d){var e=!0,f=!1,g,h,i=a(c).attr("id");d=a.extend(!0,{type:"tip",showAll:!1,paginate:!1},d);if(d.type=="popup"||d.type=="alert")d.showAll=!1;c=a(c),c.find("*").removeClass(b.imForm.constants.mark);var j=function(c,g){var h=function(){a(this).removeClass(b.imForm.constants.mark),a("[tiptarget="+a(this).attr("id")+"]").remove()},i;a(c).is("input[type=radio]")?i=a(c).parent().parent().parent().find("label").html():a("label[for="+a(c).attr("id")+"] span").length>0?i=a("label[for="+a(c).attr("id")+"] span").html():i=a("label[for="+a(c).attr("id")+"]").html(),a(c).is("input[type=password]")&&!a(c).is(":visible")&&(a(c).data("label")!=null&&(i=a(c).data("label")),c=a("#"+a(c).attr("id")+"_fake"),a(c).unbind("focus",h).focus(h)),a(c).addClass(b.imForm.constants.mark),a(c).is(":radio")&&a(c).css("border","none");if(g!=null&&(!f||d.showAll)){f=!0;var j=b.l10n.get(g);i==null&&(i=a(c).data("label")),i==null&&(i="");if(i!=null){var k=!0;while(i.charAt(i.length-1)==":"||i.charAt(i.length-1)=="*"||i.charAt(i.length-1)==" ")i=i.substr(0,i.length-1);try{j=j.replace(/\[FIELD\]/g,"'"+i+"'")}catch(l){}switch(d.type){case"alert":alert(j);break;case"popup":var m=new b.utils.Gui;m.showPopUp({text:j});break;default:var n;a(c).attr("class").match(/datePicker\[(.*),([\d]{1})\]/)&&a(c).next("span").find("img.imDatePickerIcon").is("img")!=0?n=a(c).next("span").find(".imDatePickerIcon"):a(c).is("input[type=radio]")?(a(c).one("click",function(){a("[tiptarget="+a(this).attr("id").substring(0,a(this).attr("id").lastIndexOf("_"))+"_target]").remove(),a("label[for="+a(c).attr("id").substring(0,a(c).attr("id").lastIndexOf("_"))+"] span").removeClass(b.imTip.constants.locked).attr("id","")}),n=a(c).parent().parent().parent(),n.attr("id",a(c).attr("id").substring(0,a(c).attr("id").lastIndexOf("_"))+"_target"),a("[tiptarget="+a(c).attr("id").substring(0,a(c).attr("id").lastIndexOf("_"))+"_target]").length>0&&(n=null)):a(c).next("img").is("img")?(k=a(c),n=a(c).next("img")):a(c).nextAll("iframe.imFrame\\["+a(c).attr("id")+"\\]").is("iframe")?(k=a(c),n=a(c).nextAll("iframe.imFrame\\["+a(c).attr("id")+"\\]")):n=a(c),n!=null&&(n.removeClass(b.imTip.constants.locked),b.imTip.Show(n,{position:"right",text:j,unique:!1,classes:d.classes,persistant:!0,hideOnFocus:k}))}}}e=!1},k=function(a){var b="",c="[]_\\(){}-.+*?";for(var d=0;d<a.length;d++)switch(a.charAt(d)){case"N":b+="[0-9]{1}";break;case"F":b+="[0-9]{0,1}";break;case"A":b+="[a-zA-Z]{1}";break;case"Z":b+="[a-zA-Z]{0,1}";break;default:b+=(c.indexOf(a.charAt(d))?"\\":"")+a.charAt(d)}return b="^"+b+"$",new RegExp(b)},l=function(){c.find(".mandatory").not(":checkbox").not(":radio").each(function(){(a(this).val()==""||a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))&&j(this,"form_mandatory")}),c.find(".mandatory:checkbox").each(function(){this.checked==0&&j(this,"form_mandatory")}),c.find(".mandatory:radio").each(function(){a(".mandatory[name="+a(this).attr("name")+"]:checked").length==0&&j(this,"form_mandatory")}),c.find("[class*=equalTo]").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;var b=a(this).attr("class").split(" ");for(var c=0;c<b.length;c++)if(b[c].substring(0,7)=="equalTo"){var d=b[c].substring(8,b[c].length-1);a(this).val()!=a("[name="+d+"]").val()&&j(this,"form_equal")}}),c.find("[class*=valMinLength]").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;var b=a(this).attr("class").split(" ");for(var c=0;c<b.length;c++)if(b[c].substring(0,12)=="valMinLength"){var d=parseInt(b[c].substring(13,b[c].length-1));a(this).val().length<d&&j(this,"form_length")}}),c.find("[class*=valLength]").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;var b=a(this).attr("class").split(" ");for(var c=0;c<b.length;c++)if(b[c].substring(0,9)=="valLength"){var d=parseInt(b[c].substring(10,b[c].length-1));a(this).val().length!=d&&j(this,"form_length")}}),c.find(".valNumber").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\d*$/.test(a(this).val())==0&&j(this,"form_numbers")}),c.find(".valChars").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\D*$/.test(a(this).val())==0&&j(this,"form_characters")}),c.find(".valGenTelephone").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^[0-9\-\.\/\(\)\s]*$/.test(a(this).val())==0&&j(this,"form_telephone")}),c.find(".valTelephone").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^[0-9 \-\.\/]*$/.test(a(this).val())==0&&j(this,"form_telephone")}),c.find(".valUSTelephone").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/.test(a(this).val())==0&&j(this,"form_telephone")}),c.find(".valDate").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/.test(a(this).val())==0&&j(this,"form_date")}),c.find(".valDate2").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2,4}$/.test(a(this).val())==0&&j(this,"form_date")}),c.find(".valUSDate").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/.test(a(this).val())==0&&j(this,"form_date")}),c.find("[class*=datePicker]").each(function(){a(this).attr("class").match(/datePicker\[(.*),([\d]{1})\]/);if(a(this).val()!=""&&RegExp.$1!=""&&RegExp.$2!=""){var b=RegExp.$1;b=b.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[^\\d]+").replace(/\[MM\]/g,"[^\\d]+").replace(/\[D\]/g,"[^\\d]+").replace(/\[M\]/g,"[^\\d]+"),b="^"+b+"$";var c=new RegExp(b);c.test(a(this).val())||j(this,"form_date")}}),c.find("[class*=valCDate]").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;var b=a(this).attr("class").split(" ");for(var c=0;c<b.length;c++)if(a(this).val()!=""&&b[c].substring(0,8)=="valCDate"){var d=b[c].substring(9,b[c].length-1);d=d.replace(/\_/g,"\\s").replace(/\//g,"\\/").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[\\wìòàùèé']+").replace(/\[MM\]/g,"[\\wìòàùèé']+").replace(/\[D\]/g,"[\\wìòàùèé']+"),d=d.replace(/\[M\]/g,"[\\wìòàùèé']+"),d="^"+d+"$";var e=new RegExp(d);e.test(a(this).val())||j(this,"form_date")}}),c.find(".valEmail").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val()!=""&&/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i.test(a(this).val())==0&&j(this,"form_email")}),c.find(".valCF").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val(a(this).val().toUpperCase()),a(this).val()!=""&&/^[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]$/.test(a(this).val())==0&&/^[0-9]+$/.test(a(this).val())==0&&j(this,"form_CF")}),c.find(".valURL").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val(a(this).val().toUpperCase()),a(this).val()!=""&&/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(a(this).val())==0&&j(this,"form_URL")}),c.find(".valUSZIP").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;a(this).val(a(this).val().toUpperCase()),a(this).val()!=""&&/(^\d{5}$)|(^\d{5}-\d{4}$)/.test(a(this).val())==0&&j(this,"form_format")}),c.find("[class*=valCustom]").each(function(){if(a(this).data("label")!=undefined&&a(this).val()==a(this).data("label"))return;var b=a(this).attr("class").split(" ");for(var c=0;c<b.length;c++)if(a(this).val()!=""&&b[c].substring(0,9)=="valCustom"){var d=b[c].substring(10,b[c].length-1);d=k(d),a(this).val()!=""&&a(this).val()!=""&&d.test(a(this).val())==0&&j(this,"form_format")}}),c.find("[class*=valVAT]").each(function(){return!0}),c.find("input.valDisclaimer").each(function(){this.checked||j(a(this),"form_err_disclaimer")}),c.find("[class*=imCpt]").not("iframe").each(function(){b.imForm.checkCaptcha(a(this))||(b.imForm.showCaptcha(c),j(a(this),"form_captcha"))}),c.find("input[type=submit]").attr("disabled",!1).attr("value",g),c.find(i+"_fakebutton2").attr("disabled",!1).attr("value",h),c.find("[class*=valQuestion]").each(function(){var d=a(this);if(d.data("label")!=undefined&&d.val()==d.data("label"))return;var e=a(this).attr("class"),f=a(c).attr("action");e.match(/valQuestion\[([A-Za-z0-9]+)\]/);if(b.utils.isOnline()){if(RegExp.$1!=""){var g=a(this);a.ajax({type:"POST",url:f,data:{action:"check_answer",id:RegExp.$1,answer:g.val()},async:!1,cache:!1,success:function(b,c,d){b==="0"&&j(a(g),"form_question")}})}}else a("#"+a(this).attr("id")+"_offlineanswer").val().replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")!=a(this).val().replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")&&j(a(this),"form_question")})};return d.type=="tip"&&a("."+b.imTip.constants.classId).remove(),c.find("[type=submit]").length>0&&(g=a(c).find("[type=submit]").attr("value"),c.find("input[type=submit]").attr("disabled",!0).attr("value",b.l10n.get("form_validating"))),c.find(i+"_fakebutton2").length>0&&(h=c.find(id+"_fakebutton2").attr("value"),c.find(i+"_fakebutton2").attr("disabled",!0).attr("value",b.l10n.get("form_validating"))),l(),e},submit:function(c,d){c=a(c),b.imForm.validate(c,d)&&(b.utils.isOnline()?c.unbind("submit").submit():b.utils.showOfflineMessage(d.offlineMessage))}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{gallery360:function(c){var d=a.extend({target:"",media:[],width:400,height:400,guiColor:"#f7f7f7",guiAlpha:.999,backgroundColor:"#f7f7f7",helperBg:"black",swipeImage:"res/imSwipe.png",autoplay:!1,music:null,showButtons:!0,controlBarHeight:28,controlBarImage:"",buttonPlayImage:"",buttonPauseImage:"",buttonNextImage:"",buttonPrevImage:"",resFolder:"res"},c),e=a(d.target),f=[],g=null,h="touchstart"in document||"ontouchstart"in document,i=navigator.userAgent.match(/Android/i),j=!1,k=null,l=null,m=null,n=null,o=null,p=null,q=null,r=null,s=0,t=b.utils.hex2rgb(d.guiColor,-50,-50,-50),u=b.utils.hex2rgb(d.guiColor,-20,-20,-20,!0),v=null,w=null,x=!1,y="autoplay_start",z="autoplay_stop",A=function(a,b,c,d){if(a===null||a===undefined||f[a]===null||f[a]===undefined)return!1;if(g===a)return!1;if(b===null||b===undefined)b=!0;f[a].DOMObject().css("display","none"),g!==null&&g!==undefined?(f[g].DOMObject().after(f[a].DOMObject()),f[g].AnimateOut(J,function(a){a.DOMObject().detach()},c)):J.prepend(f[a].DOMObject()),g=a,f[g].AnimateIn(J,null,c),I.triggerHandler("showmedia"),h&&v!==null&&(v.attr("data-hide")=="false"?v.attr("data-hide","true"):v.stop(!1,!1).fadeOut(),w!==null&&(clearTimeout(w),w=null),w=setTimeout(function(){v.stop(!1,!1).fadeIn()},7e3))},B=function(){var a=g;if(++a>=f.length||f[a]===null||f[a]===undefined)a=0;A(a,(h||j)&&(m===null||m===undefined||m.css("display")=="none"))},C=function(){var a=g;if(--a<0||f[a]===null||f[a]===undefined)a=f.length-1;A(a,(h||j)&&(m===null||m===undefined||m.css("display")=="none"),!0)},D=function(){return j||(j=!0,F(),I.trigger(y)),k=setTimeout(function(){B(),k!==null&&(clearTimeout(k),k=null),D()},f[g].AutoplayTime()),!0},E=function(){return G(),k!==null&&(clearTimeout(k),k=null,f[g].Stop()),j=!1,I.trigger(z),!0},F=function(){M!==null&&M.Play()},G=function(){M!==null&&M.Pause()},H=function(c){if(c>=d.media.length)return;c===0&&J.css({"background-image":"url('res/imLoad.gif')","background-position":"center center","background-repeat":"no-repeat"});var e=f.length,j=new b.mediaObject(a.extend(d.media[c],{showControls:d.media[c].showControls||h,touchDevice:h,android:i,contentWidth:J.width(),contentHeight:J.height(),load:function(b){f[e]=b;if(c===d.media.length-1){if((d.showButtons===!0||d.showButtons==="outside")&&!h){var i=s/(f.length-1);if(f.length<=20)for(var j=0;j<f.length;j++)r.append(a("<div />").css({"background-color":t,position:"absolute",top:d.controlBarHeight/2-3,left:j*i}).width(1).height(6));r.bind("dragstart",function(){return!1}).mousedown(function(){x=!0,E()}),a("body").mousemove(function(a){if(x){var b=Math.max(0,Math.min(s,a.pageX-r.offset().left));return b=Math.round(b/i),A(b),l.css("left",b*i),!1}}).mouseup(function(){x=!1}),I.bind("showmedia",function(){l.css("left",g*i)})}J.css("background-image","none"),A(0),d.autoplay===!0&&D()}if(h){var k=0,m=0,n=0,o=0,p=0,q=!1,u=null,v=d.width/d.media.length;f[e].BeforeMove(function(a){m=a.touches[0].pageX,n=a.touches[0].pageY,o=p=k=0,q=!1,!u||clearTimeout(u)}).Move(function(a,b){a.preventDefault();var c=Math.abs(b.offsetX)>Math.abs(b.offsetY)?b.offsetX:b.offsetY;c<k-v?(C(),k=c):c>k+v&&(B(),k=c),o=a.touches[0].pageX-m,p=a.touches[0].pageY-n,m=a.touches[0].pageX,n=a.touches[0].pageY,q=!0}).AfterMove(function(a,b){a.preventDefault(),(o=Math.max(Math.abs(o),Math.abs(p)))>5&&function c(a){if(!q)return;b.offsetX<=0?C():B(),(a*=1.75)<500&&q&&(u=setTimeout(function(){c(a)},a))}(100/Math.abs(o))})}H(c+1)},error:function(a,b){H(c+1)}}))},I=a("<div />").css({position:"relative","background-color":d.backgroundColor,"user-select":"none"}).width(d.width).height(d.height).attr("unselectable","on"),J=a("<div />").css({overflow:"hidden",position:"absolute",left:0,top:0,"user-select":"none"}).width(d.width).height(d.height).attr("unselectable","on");I.append(J),e.empty().append(I),e.css("position")=="static"&&e.css("position","relative");if((d.showButtons===!0||d.showButtons==="outside")&&!h){m=a("<div />").css({position:"absolute",top:d.showButtons=="outside"?J.height():"auto",bottom:d.showButtons=="outside"?"auto":0,left:0,right:0,"background-color":d.guiColor}).height(d.controlBarHeight),d.controlBarImage===null||d.controlBarImage===undefined||d.controlBarImage===""?m.css("background-image",b.utils.cssPropertyPrefix("linear-gradient(bottom, "+b.utils.hex2rgb(d.guiColor,-50,-50,-50,!0)+" 0%, "+d.guiColor+" 50%, "+b.utils.hex2rgb(d.guiColor,50,50,50,!0)+" 100%)")):m.css("background-image",d.controlBarImage!==""&&d.controlBarImage!==undefined&&d.controlBarImage!==null?"url('"+d.controlBarImage+"')":"none"),d.showButtons==="outside"?J.after(m):J.append(m);var K=function(){var b=null;d.buttonPlayImage===""||d.buttonPlayImage===undefined||d.buttonPlayImage===null?(b=a("<div />").css({"background-color":"transparent","border-style":"solid"}),j?b.css({position:"static",margin:(n.height()-16)/2+"px "+n.height()/3+"px","border-width":"0 3px 0 3px","border-color":t,"border-radius":0}).width(4).height(16):b.css({margin:(n.height()-20)/2+"px "+n.height()/3+"px","border-width":10,"border-color":"transparent transparent transparent "+t,"border-radius":3}).width(1).height(1)):b=a("<img />").attr("src",j?d.buttonPauseImage:d.buttonPlayImage),n.empty().append(b)};d.buttonPlayImage===null||d.buttonPlayImage===undefined||d.buttonPlayImage===""?n=a("<div />").css({"float":"left",cursor:"pointer","border-right":"1px solid "+u}).width(d.controlBarHeight-1).height(d.controlBarHeight):n=a("<div />").attr("src",d.buttonPlayImage).css({"float":"left",cursor:"pointer"}),n.click(function(a){a.preventDefault(),j?E():D()}),K(),I.bind(y,K).bind(z,K),m.append(n),m.append(o=a("<div />").css({"float":"right","border-left":"1px solid "+u,"text-align":"center"})),d.buttonPrevImage===""||d.buttonPrevImage===null||d.buttonPrevImage===undefined?q=a("<div />").css({color:t,cursor:"pointer","line-height":d.controlBarHeight+"px","font-size":d.controlBarHeight-5,"font-family":"Arial","float":"left",padding:"0 5px 0 5px"}).html("<"):q=a("<img />").attr("src",d.buttonPrevImage).css("cursor","pointer"),o.prepend(q.click(function(a){return a.preventDefault(),E(),C(),!1}).bind("selectstart mousedown",function(){return!1})),d.buttonNextImage===""||d.buttonNextImage===null||d.buttonNextImage===undefined?p=a("<div />").css({color:t,cursor:"pointer","line-height":d.controlBarHeight+"px","font-size":d.controlBarHeight-5,"font-family":"Arial","float":"right",padding:"0 5px 0 5px"}).html(">"):p=a("<img />").attr("src",d.buttonNextImage).css({cursor:"pointer"}),o.append(p.click(function(a){return a.preventDefault(),E(),B(),!1}).bind("selectstart mousedown",function(){return!1})),s=d.width-n.outerWidth()-o.outerWidth()-20,l=a("<div >").css({"background-color":t,position:"absolute",top:-9}).width(8).height(20),r=a("<div >").css({position:"relative","float":"left",cursor:"pointer",margin:"0 10px"}).width(s).append(a("<div />").css({position:"absolute",top:d.controlBarHeight/2-1,"background-color":t,width:"100%",height:2}).append(l)),n.after(r);var L=function(){J.triggerHandler("mouseleave")};m.fadeOut(0),d.showButtons!="outside"&&J.mouseenter(function(){a("body").unbind("mouseup",L),m.stop(!1,!1).fadeTo(250,d.guiAlpha)}).mouseleave(function(){x?a("body").one("mouseup",L):m.stop(!1,!1).fadeOut(250)})}h&&(v=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:d.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+d.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),J.append(v));var M=null;d.music!==null&&d.music!==undefined&&(M=new b.mediaObject({type:"audio",url:d.music,width:1,height:1,effect:"none",load:function(a){I.append(a.DOMObject()),a.AnimateIn()}})),H(0)}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{gallery:function(c){var d=a.extend(!0,{target:"",media:[],startFrom:0,width:400,height:400,backgroundColor:"#f7f7f7",helperBg:"black",swipeImage:"res/imSwipe.png",loadingImage:"res/imLoad.gif",thumbsArrowLImage:"res/imArrL.png",thumbsArrowRImage:"res/imArrR.png",thumbsArrowUImage:"res/imArrT.png",thumbsArrowDImage:"res/imArrB.png",description:{backgroundColor:"#444",color:"white",alpha:.8,alignment:"center",fontFamily:"Arial",fontSize:14,fontStyle:"normal",fontWeight:"normal"},thumbs:{position:"none",number:4,size:20},autoplay:!1,music:null,controlBar:{show:!1,height:28,color:"#f7f7f7",alpha:1,image:null},buttons:{playImage:"",pauseImage:"",nextImage:"",prevImage:""},random:!1,fullScreen:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0},buttonNext:{url:"",x:0,y:0}}},c),e=a(d.target),f=[],g=null,h=null,i=navigator.userAgent.toLowerCase(),j="touchstart"in document||"ontouchstart"in document,k=null,l=!1,m=null,n=0,o=0,p=null,q=0,r=null,s=0,t=0,u=null,v=null,w=null,x=null,y=null,z=null,A=null,B=null,C=b.utils.hex2rgb(d.controlBar.color,-50,-50,-50),D=b.utils.hex2rgb(d.controlBar.color,-20,-20,-20,!0),E=a.Callbacks(),F=a.Callbacks(),G=a(document),H=a("body"),I=a(window),J=null,K=null,L="autoplay_start",M="autoplay_stop";n=(d.thumbs.position=="bottom"||d.thumbs.position=="top"?d.width:d.height)%(d.thumbs.number*d.thumbs.size),n=Math.round(n/d.thumbs.number/2),o=d.thumbs.size+2*n;var N=function(b,c,h,i){if(g===b||b===null||b===undefined||f[b]===null||f[b]===undefined)return!1;if(c===null||c===undefined)c=!0;if(h===null||h===undefined)h=!1;if(i===null||i===undefined)i=!1;f[b].DOMObject().css("display","none"),g!==null&&g!==undefined?(f[g].DOMObject().after(f[b].DOMObject()),f[g].AnimateOut(_,function(a){a.DOMObject().detach()},h)):_.prepend(f[b].DOMObject()),g=b,f[g].AnimateIn(_,function(){i&&Q(g),E.fire(g)},h),u!==null&&u.html(g+1+"/"+f.length);var l=f[g].GetDescription();l!==null&&l!==undefined&&l!==""?(k===null&&(k=a("<div />").attr("id",e.attr("id")+"_description").css({position:"absolute",left:0,right:0,bottom:0,"background-color":d.description.backgroundColor,display:"none",color:d.description.color,"text-align":d.description.alignment,padding:2,"font-family":d.description.fontFamily,"font-size":d.description.fontSize,"font-style":d.description.fontStyle,"font-weight":d.description.fontWeight}),_.append(k)),k.stop(!1,!1).fadeOut(250,function(){k.html(l.replace(/\n/g,"<br />")),c&&k.stop(!1,!1).fadeTo(250,d.description.alpha)}),j||e.mouseenter(function(){k!==null&&k.stop(!1,!1).fadeOut(250)}).mouseleave(function(){k!==null&&k.stop(!1,!1).fadeTo(250,d.description.alpha)})):k!==null&&k.stop(!1,!1).fadeOut(250,function(){k.detach(),k=null})},O=function(){var a=g;if(++a>=f.length||f[a]===null||f[a]===undefined)a=0;N(a,(j||l)&&(v===null||v===undefined||v.css("display")=="none"),!1,!0)},P=function(){var a=g;if(--a<0||f[a]===null||f[a]===undefined)a=f.length-1;N(a,(j||l)&&(v===null||v===undefined||v.css("display")=="none"),!0,!0)},Q=function(a){if(d.thumbs.position!="embed"&&d.thumbs.position!="none"&&d.thumbs.number>=f.length)return!1;if(d.thumbs.position=="embed"&&t/d.thumbs.size>=f.length)return!1;a=Math.max(0,Math.min(a,f.length));if(jb!==null&&jb!==undefined){var b=a,c;d.thumbs.position!="embed"?(d.thumbs.position=="top"||d.thumbs.position=="bottom"?b=o*(b+1)-ab.width()/2:b=o*(b+1)-ab.height()/2,c=Math.abs(b%o)):(b=d.thumbs.size*(b+1)-ab.width()/2,c=Math.abs(b%d.thumbs.size)),c>o/2?b-=c:b+=c,d.thumbs.position=="top"||d.thumbs.position=="bottom"||d.thumbs.position=="embed"?jb.stop(!1,!1).animate({left:Math.min(0,Math.max(-b,-jb.width()+ab.width()))}):jb.stop(!1,!1).animate({top:Math.min(0,Math.max(-b,-jb.height()+ab.height()))})}},R=function(){return l||(l=!0,X(),Z.trigger(L)),m=setTimeout(function(){O(),m!==null&&(clearTimeout(m)
,m=null),R()},f[g].AutoplayTime()),!0},S=function(){var c=d.thumbs.position,e=d.media;V();var f=a("<div />").css({position:"fixed",left:0,right:0,top:0,bottom:0,"background-color":"black","z-index":b.settings.zIndex.popup+10}).addClass("fullScreen").append(a("<div >"));H.append(f);for(var h=0;h<e.length;h++)e[h].hiresUrl!==null&&e[h].hiresUrl!==""&&e[h].hiresUrl!==undefined&&(e[h].width=null,e[h].height=null,e[h].url=e[h].hiresUrl);var i=function(){f.length>0&&f.hasClass("fullScreen")&&(f.remove(),S())},j=b.gallery(a.extend(!0,d,{target:f.find("div"),width:f.width(),height:f.height(),startFrom:g,media:e,slideshow:{active:!1},thumbs:{number:c!="embed"&&c!="none"?Math.floor((c=="top"||c=="bottom"?I.width():I.height())/d.thumbs.size):0}})).onExitFullScreen(function(a){I.unbind("resize",i),N(a)});I.one("resize",i),G.keydown(function(a){switch(a.keyCode){case 37:case 40:a.preventDefault(),j.stopAutoplay().showPrev();break;case 39:case 38:a.preventDefault(),j.stopAutoplay().showNext();break;case 27:a.preventDefault(),j.exitFullScreen()}})},T=function(){e.parent().fadeOut(200,function(){F.fire(g),e.parent().remove()})},U=function(){e.parent().hasClass("fullScreen")?T():S()},V=function(){return Y(),m!==null&&(clearTimeout(m),m=null,f[g].Stop()),l=!1,Z.trigger(M),!0},W=function(c){if(d.media[c]===undefined||d.media[c]===null){h!==null&&(h.remove(),h=null),d.thumbs.position==="bottom"||d.thumbs.position==="top"?jb.width(f.length*o):d.thumbs.position!=="embed"&&d.thumbs.position!=="none"&&jb.height(f.length*o);return}c===0&&_.css({"background-image":"url('"+d.loadingImage+"')","background-position":"center center","background-repeat":"no-repeat"});var e=f.length,i=new b.mediaObject(a.extend(d.media[c],{showControls:d.media[c].showControls||j,touchDevice:j,contentWidth:_.width(),contentHeight:_.height(),load:function(b){f[e]=b,e===d.startFrom&&(_.css("background-image","none"),h===null&&jb!==null&&jb!==undefined&&(h=a("<div />").css({"float":"left","background-image":"url('"+d.loadingImage+"')","background-position":"center center","background-repeat":"no-repeat"}).width(d.thumbs.size).height(d.thumbs.size),jb.append(h)),N(d.startFrom),d.autoplay===!0&&R());var i=b.GetThumb();i.click(function(){V(),N(e,(d.thumbs.position!=="embed"||j)&&(!v||v.css("display")=="none"))}).css({"float":"left",display:"none",cursor:"pointer"}).width(d.thumbs.size).height(d.thumbs.size),d.thumbs.position=="bottom"||d.thumbs.position=="top"?i.css("margin","0 "+Math.ceil(n)+"px 0 "+Math.floor(n)+"px"):(d.thumbs.position=="left"||d.thumbs.position=="right")&&i.css("margin",Math.ceil(n)+"px 0 "+Math.floor(n)+"px 0"),d.thumbs.position=="embed"&&i.mouseenter(function(){a(".im-big-thumb").remove();var b=i.offset().left-_.offset().left,c=a("<img />").addClass("im-big-thumb");_.append(c),c.one("load",function(){var a=Math.min(_.width()-c.width(),Math.max(0,b+(d.thumbs.size-c.width())/2));c.css("left",a).fadeIn(250)}).css({position:"absolute",display:"none",bottom:d.controlBar.height}).attr("src",i.attr("src")),i.unbind("mouseleave").mouseleave(function(){c!==null&&c.stop(!1,!1).fadeOut(250,function(){c.remove()})})}),d.thumbs.position==="bottom"||d.thumbs.position==="top"?jb.width((f.length+1)*o):d.thumbs.position==="bottom"&&jb.height((f.length+1)*o),h?h.before(i):!jb||jb.append(i),i.fadeIn(),j&&f[e].AfterMove(function(a,b){a.preventDefault(),d.controlBar.show&&d.media.length>1&&(u.html(g+1+"/"+f.length),p.stop(!1,!1).fadeIn(),!r||(clearTimeout(r),r=null),r=setTimeout(function(){p.fadeOut()},2e3)),!J||(J.attr("data-hide")=="false"?J.attr("data-hide","true"):J.stop(!1,!1).fadeOut(),!K||(clearTimeout(K),K=null),K=setTimeout(function(){J.stop(!1,!1).fadeIn()},7e3)),V(),(Math.abs(b.offsetX)>Math.abs(b.offsetY)?b.offsetX:b.offsetY)<0?O():P()}),u!==null&&u.html(g+1+"/"+f.length),W(c+1)},error:function(a,b){i=null,a=null,W(c+1)}}))},X=function(){Db!==null&&Db.Play()},Y=function(){Db!==null&&Db.Pause()},Z=a("<div />").css({position:"relative","background-color":d.backgroundColor}).width(d.width).height(d.height),_=a("<div />").css({overflow:"hidden",position:"absolute",top:d.thumbs.position!=="top"?"0":"auto",bottom:d.thumbs.position!=="bottom"?"0":"auto",left:d.thumbs.position!=="left"?"0":"auto",right:d.thumbs.position!=="right"?"0":"auto"}).width(d.thumbs.position=="right"||d.thumbs.position=="left"?d.width-d.thumbs.size:d.width).height(d.thumbs.position=="top"||d.thumbs.position=="bottom"?d.height-d.thumbs.size:d.height),ab=a("<div />");Z.append(_),d.thumbs.position!=="embed"&&Z.append(ab),e.empty().append(Z),e.css("position")=="static"&&e.css("position","relative");if((d.controlBar.show===!0||d.controlBar.show==="outside")&&!j){v=a("<div />").css({position:"absolute",top:d.controlBar.show==="outside"?_.height():"auto",bottom:d.controlBar.show==="outside"?"auto":0,left:0,right:0,"background-color":d.controlBar.color}).height(d.controlBar.height),d.controlBar.image===null||d.controlBar.image===undefined||d.controlBar.image===""?v.css("background-image",b.utils.cssPropertyPrefix("linear-gradient(bottom, "+b.utils.hex2rgb(d.controlBar.color,-50,-50,-50,!0)+" 0%, "+d.controlBar.color+" 50%, "+b.utils.hex2rgb(d.controlBar.color,50,50,50,!0)+" 100%)")):v.css("background-image",d.controlBar.image!==""&&d.controlBar.image!==undefined&&d.controlBar.image!==null?"url('"+d.controlBar.image+"')":"none"),d.controlBar.show==="outside"?_.after(v):_.append(v);var bb=function(){var b=null;d.buttons.playImage===""||d.buttons.playImage===undefined||d.buttons.playImage===null?(b=a("<div />").css({"background-color":"transparent","border-style":"solid"}),l?b.css({position:"static",margin:(A.height()-16)/2+"px "+A.height()/3+"px","border-width":"0 3px 0 3px","border-color":C,"border-radius":0}).width(4).height(16):b.css({margin:(A.height()-20)/2+"px "+A.height()/3+"px","border-width":10,"border-color":"transparent transparent transparent "+C,"border-radius":3}).width(1).height(1)):b=a("<img />").attr("src",l?d.buttons.pauseImage:d.buttons.playImage),A.empty().append(b)};d.buttons.playImage===null||d.buttons.playImage===undefined||d.buttons.playImage===""?A=a("<div />").css({"float":"left",cursor:"pointer","border-right":"1px solid "+D}).width(d.controlBar.height-1).height(d.controlBar.height):A=a("<div />").attr("src",d.buttons.playImage).css({"float":"left",cursor:"pointer"}),A.click(function(a){a.preventDefault(),l?V():R()}),bb(),Z.bind(L,bb).bind(M,bb),v.append(A);var cb=a("<span />").html(d.media.length+"/"+d.media.length);v.append(cb),q=cb.width()+(d.slideshow.active?14:54),cb.remove(),cb=null,p=a("<div />").css({position:"absolute",right:0,top:0,"border-left":"1px solid "+D,"text-align":"center",overflow:"hidden"}).height(d.controlBar.height).width(q),v.append(p),p.append(u=a("<span />").css({color:C,"font-family":"arial","font-size":"11pt","line-height":d.controlBar.height+"px",padding:"0 5px"}).html(d.media.length+"/"+d.media.length)),d.slideshow.active||(d.buttons.prevImage===""||d.buttons.prevImage===null||d.buttons.prevImage===undefined?y=a("<div />").css({color:C,cursor:"pointer","line-height":d.controlBar.height+"px","font-size":d.controlBar.height-5,"font-family":"Arial","float":"left",padding:"0 0 0 5px"}).html("<"):y=a("<img />").attr("src",d.buttons.prevImage).css({cursor:"pointer"}),p.prepend(y.click(function(a){return a.preventDefault(),V(),P(),!1}).bind("selectstart mousedown",function(){return!1})),d.buttons.nextImage===""||d.buttons.nextImage===null||d.buttons.nextImage===undefined?z=a("<div />").css({color:C,cursor:"pointer","line-height":d.controlBar.height+"px","font-size":d.controlBar.height-5,"font-family":"Arial","float":"right",padding:"0 5px 0 0"}).html(">"):z=a("<img />").attr("src",d.buttons.nextImage).css({cursor:"pointer"}),p.append(z.click(function(a){return a.preventDefault(),V(),O(),!1}).bind("selectstart mousedown",function(){return!1})));if(d.fullScreen){B=a("<div />").css({position:"absolute",top:0,right:q,"border-left":"1px solid "+D,cursor:"pointer"}).width(d.controlBar.height).height(d.controlBar.height).attr("title","Full Screen").click(function(){U()}),v.append(B);var db=6,eb=3,fb=a("<div />"),gb=a("<div />"),hb=a("<div />"),ib=a("<div />");B.append(fb.add(gb).add(hb).add(ib).css({"border-color":C,"border-style":"solid",position:"absolute"}).width(eb).height(eb)),e.parent().hasClass("fullScreen")?(fb.css({top:db,left:db,"border-width":"0 2px 2px 0"}),gb.css({top:db,right:db,"border-width":"0 0 2px 2px"}),hb.css({bottom:db,right:db,"border-width":"2px 0 0 2px"}),ib.css({bottom:db,left:db,"border-width":"2px 2px 0 0"})):(fb.css({top:db,left:db,"border-width":"2px 0 0 2px"}),gb.css({top:db,right:db,"border-width":"2px 2px 0 0"}),hb.css({bottom:db,right:db,"border-width":"0 2px 2px 0"}),ib.css({bottom:db,left:db,"border-width":"0 0 2px 2px"}))}/MSIE [7]/.test(navigator.userAgent)&&(u.css("float","left"),p.width(u.outerWidth()+(z?z.outerWidth():0)+(y?y.outerWidth():0))),s=v.width()-A.outerWidth()-p.outerWidth()-(B?B.outerWidth():0),d.controlBar.show!=="outside"&&(v.hide(0),e.mouseenter(function(){v.stop(!1,!1).fadeTo(250,d.controlBar.alpha)}).mouseleave(function(){v.stop(!1,!1).fadeOut(250)}))}var jb=null;switch(d.thumbs.position){case"top":case"bottom":case"left":case"right":ab.css({overflow:"hidden",position:"absolute",top:d.thumbs.position!=="bottom"?0:"auto",bottom:d.thumbs.position!=="top"?0:"auto",left:d.thumbs.position!=="right"?0:"auto",right:d.thumbs.position!=="left"?0:"auto"}),ab.width(d.thumbs.position==="bottom"||d.thumbs.position==="top"?d.width:d.thumbs.size),ab.height(d.thumbs.position==="bottom"||d.thumbs.position==="top"?d.thumbs.size:d.height),jb=a("<div />"),ab.append(jb),d.thumbs.position!=="bottom"&&d.thumbs.position!=="top"?jb.width(d.thumbs.size):(d.thumbs.position==="bottom"||d.thumbs.position==="top")&&jb.height(d.thumbs.size),jb.css({position:"absolute",top:0,left:0});var kb=ab.offset(),lb=ab.width(),mb=ab.height(),nb=d.thumbs.number*o;if(!j){if(d.media.length>d.thumbs.number)if(d.thumbs.position==="top"||d.thumbs.position==="bottom"){var ob=ab.height(),pb=a("<img />").css({cursor:"pointer",left:0,position:"absolute",display:"none"}).click(function(){var a=jb.css("left").replace(/px/g,"")*1;a-=a%o,jb.stop(!1,!1).animate({left:Math.min(0,a+nb)})}).one("load",function(){ab.append(pb),pb.css("top",(ob-pb.height())/2)}).attr("src",d.thumbsArrowLImage),qb=a("<img />").width(22).css({cursor:"pointer",right:0,position:"absolute",display:"none"}).click(function(){var a=jb.css("left").replace(/px/g,"")*1;a-=a%o,jb.stop(!1,!1).animate({left:Math.max(-jb.width()+lb,a-nb)})}).one("load",function(){ab.append(qb),qb.css("top",(ob-qb.height())/2)}).attr("src",d.thumbsArrowRImage);ab.mouseenter(function(){pb.add(qb).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){pb.add(qb).stop(!1,!1).fadeOut(250)})}else{var rb=a("<img />"),sb=ab.width();ab.append(rb),rb.height(22).css({cursor:"pointer",top:0,position:"absolute",display:"none"}).click(function(){var a=jb.css("top").replace(/px/g,"")*1;a-=a%o,jb.animate({top:Math.min(0,a+nb)})}).one("load",function(){ab.append(rb),rb.css("left",(sb-rb.width())/2)}).attr("src",d.thumbsArrowUImage);var tb=a("<img />");ab.append(tb),tb.height(22).css({cursor:"pointer",bottom:0,position:"absolute",display:"none"}).click(function(){var a=jb.css("top").replace(/px/g,"")*1;a-=a%o,jb.animate({top:Math.max(-jb.height()+mb,a-nb)})}).one("load",function(){ab.append(tb),tb.css("left",(sb-tb.width())/2)}).attr("src",d.thumbsArrowDImage),ab.mouseenter(function(){rb.add(tb).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){rb.add(tb).stop(!1,!1).fadeOut(250)})}}else{var ub=null,vb=null,wb=!1,xb=null,yb=0,zb,Ab;ab[0].addEventListener("touchstart",function(a){jb.stop(!0,!1),a.touches.length==1&&(a.preventDefault(),xb=a.target,zb=Math.round(jb.css("left").replace(/px/g,"")*1),Ab=Math.round(jb.css("top").replace(/px/g,"")*1),ub=a.touches[0].pageX,vb=a.touches[0].pageY),wb=!1}),ab[0].addEventListener("touchmove",function(a){a.preventDefault();var b=null;if(a.touches.length==1){var c=a.touches[0];wb=!0,jb.stop(!0,!1);if(d.thumbs.position=="top"||d.thumbs.position=="bottom"){yb=ub-c.pageX;if(zb-yb>0||zb-yb<-jb.width()+lb)yb/=2;window.cancelAnimFrame(b),zb-=yb,b=window.requestAnimFrame(function(){jb.css({left:zb})}),ub=c.pageX}else{yb=vb-c.pageY;if(Ab-yb>0||Ab-yb<-jb.height()+mb)yb/=2;window.cancelAnimFrame(b),Ab-=yb,b=window.requestAnimFrame(function(){jb.css({top:Ab})}),vb=c.pageY}}}),ab[0].addEventListener("touchend",function(b){if(!wb)xb!==null&&(a(xb).click(),xb=null);else{var c;jb.stop(!0,!1);if(d.thumbs.position==="top"||d.thumbs.position==="bottom"){var e=0;f.length>d.thumbs.number&&(e=jb.css("left").replace(/px/g,"")*1,e=Math.max(-jb.width()+lb,Math.min(0,e-yb*10))),e!==-jb.width()+lb&&e!==0&&(c=Math.abs(e%o),c>o/2?e-=o-c:e+=c),jb.animate({left:e},{duration:1e3,easing:"iOsSwing"})}else{var g=0;f.length>d.thumbs.number&&(g=jb.css("top").replace(/px/g,"")*1,g=Math.max(-jb.height()+mb,Math.min(0,g-yb*10))),g!==-jb.height()+mb&&g!==0&&(c=Math.abs(g%o),c>o/2?g-=o-c:g+=c),jb.animate({top:g},{duration:1e3,easing:"iOsSwing"})}yb=0}})}break;case"embed":if(d.controlBar.show&&!j){var Bb=!1,Cb=0;t=d.width-(d.slideshow.active?110:180),t-=t%d.thumbs.size,Bb=t/d.thumbs.size<d.media.length&&!j,Bb&&(s-=46),s-=s%d.thumbs.size,Cb=d.width-s-(Bb?46:0)-(A!==null?A.width():0)-(B!==null?B.width():0)-(p!==null?p.width():0),Cb/=2,t>0&&(ab.css({position:"relative","float":"left",overflow:"hidden","margin-top":(d.controlBar.height-d.thumbs.size)/2,"background-color":"#444"}).width(s).height(d.thumbs.size),A.after(ab),jb=a("<div />").css({position:"absolute",top:0,left:0}).width(d.thumbs.size*d.media.length),ab.append(jb),Bb?(ab.before(w=a("<div />")),w.css({"margin-top":(d.controlBar.height-d.thumbs.size)/2+2,"margin-right":3,"margin-left":Cb,height:0,"border-width":d.thumbs.size/2-2,"border-color":"transparent "+C+" transparent transparent","border-style":"solid",width:0,cursor:"pointer","float":"left","border-radius":3}).click(function(){var a=jb.css("left").replace(/px/g,"")*1;jb.animate({left:Math.min(0,a+ab.width())})}),ab.after(x=a("<div />")),x.css({"margin-top":(d.controlBar.height-d.thumbs.size)/2+2,"margin-left":3,height:0,"border-width":d.thumbs.size/2-2,"border-color":"transparent transparent transparent "+C,"border-style":"solid",width:0,cursor:"pointer","float":"left","border-radius":3}).click(function(){var a=jb.css("left").replace(/px/g,"")*1;jb.animate({left:Math.max(-jb.width()+ab.width(),a-ab.width())})})):ab.css("margin-left",Cb))}break;default:}d.slideshow.active&&d.slideshow.nextPrevMode!="none"&&!j&&(a("<img />").one("load",function(){var b=a(this);Z.append(y=b.css("display","none")),y.css({position:"absolute",top:(Z.height()-b.height())/2+d.slideshow.buttonPrev.y,left:d.slideshow.buttonPrev.x,display:d.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer"}).click(function(a){a.preventDefault(),V(),P()})}).attr("src",d.slideshow.buttonPrev.url),a("<img />").one("load",function(){var b=a(this);Z.append(z=b.css("display","none")),z.css({position:"absolute",top:(Z.height()-b.height())/2+d.slideshow.buttonNext.y,right:d.slideshow.buttonNext.x,display:d.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer"}).click(function(a){a.preventDefault(),V(),O()})}).attr("src",d.slideshow.buttonNext.url),d.slideshow.nextPrevMode=="hover"&&e.mouseenter(function(){y.add(z).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){y.add(z).stop(!1,!1).fadeOut(250)})),j&&d.media.length>1&&(J=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:d.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+d.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10})).attr("data-hide","true"),_.append(J),u=a("<div />").css({position:"absolute",color:"white","line-height":"30px",top:0,bottom:0,left:0,right:0,"z-index":10}),p=a("<div />").css({position:"absolute",bottom:0,right:0,display:"none","z-index":10}).width(30).height(30).append(a("<div />").css({background:d.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(u),_.append(p));var Db=null;d.music!==null&&d.music!==undefined&&(Db=new b.mediaObject({type:"audio",url:d.music,width:1,height:1,effect:"none",load:function(a){Z.append(a.DOMObject()),a.AnimateIn()}}));if(d.random){var Eb=d.media,Fb,Gb,Hb;for(Hb=Eb.length;Hb;Fb=Math.round(Math.random()*Hb),Gb=Eb[--Hb],Eb[Hb]=Eb[Fb],Eb[Fb]=Gb);d.medias=Eb}return W(0),{onShowMedia:function(a){return E.add(a),this},onExitFullScreen:function(a){return F.add(a),this},exitFullScreen:function(){return T(),this},showNext:function(){return O(),this},showPrev:function(){return P(),this},stopAutoplay:function(){return V(),this},showMedia:function(a){return N(a,!0,!1,!0),this}}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imGrid:{cell:function(b){var c,d,e,f,g,h,i=!1;b=a(b);var j=function(){var a=b.css("height");b.css("height","auto");var c=b.height();return b.find("[class*=imCpt]").not("iframe").length>0&&(c+=30),b.css("height",a),c},k=function(){var a=b.offset();c=a.top,d=c+b.outerHeight()},l=function(){var a=b.offset();e=a.left,f=e+b.outerWidth()};this.height=function(a){if(a===null||a===undefined)return b.height();b.height(a-(b.outerHeight()-b.height()))},this.pushY=function(a){b.css("top").match(/^([0-9]+)[a-z]*$/);var c=RegExp.$1*1;c+=a,b.css("top",c+"px")},this.html=function(a){if(a===null||a===undefined)return b.html();b.html(a)},this.isAbsolute=function(a){if(a===null||a===undefined)return i;i=a},this.sy=function(){return k(),c},this.ey=function(){return k(),d},this.sx=function(){return l(),e},this.ex=function(){return l(),f},h=b.offset().top,g=j(),b.height()<g&&b.height(g)},init:function(){if(b.settings.imGrid.enabled){var c=[],d=[],e,f,g,h=a("#imFooPad"),i,j,k=0;h.length>0&&(j=h.offset().top,i=j+h.innerHeight()),a("[class*=imGrid]").each(function(){var e=a(this).attr("class"),f,g,h;if(/imGrid\[[0-9]+,\s*[0-9]+[,]*\s*[0-9]*\]/.test(e)){e.match(/imGrid\[([0-9]+),\s*([0-9]+)[,]?\s*([0-9]*)\]/),f=RegExp.$1*1,g=RegExp.$2*1;if(c[g]===null||c[g]===undefined)c[g]=[];if(d[f]===null||d[f]===undefined)d[f]=[];h=new b.imGrid.cell(this),h.isAbsolute(RegExp.$3*1==1),c[g][c[g].length]=h,d[f][d[f].length]=h}});for(e=0;e<c.length;e++)if(c[e]!==null&&c[e]!==undefined){k=0;for(f=0;f<c[e].length;f++){if(c[e][f].isAbsolute()&&e!==0)for(var l=0;l<c[e-1].length;l++){var m=c[e-1][l],n=c[e][f];m.ey()>n.sy()&&(m.sx()<n.ex()||m.ex()>n.sx())&&n.pushY(m.ey()-n.sy())}c[e][f].ey()>k&&(k=c[e][f].ey())}for(f=0;f<c[e].length;f++)c[e][f].height(k-c[e][f].sy())}h.length>0&&(k>i?h.remove():h.height(i-j-k-(a("#imBtMn").length>0?a("#imBtMn").outerHeight():0)))}}}})}(_jq,x5engine),function(a,b){"use strict";var c=window.requestAnimFrame,d=window.cancelAnimFrame,e=b.utils,f=b.settings;a.extend(b,{imagefx:{opacityIn:function(b,c){a(b).mouseenter(function(){a(this).stop(!1,!1).fadeTo(null,1)}).mouseleave(function(){a(this).stop(!1,!1).fadeTo(null,c)}).fadeTo(0,c)},opacityOut:function(b,c){a(b).mouseleave(function(){a(this).stop(!1,!1).fadeTo(null,1)}).mouseenter(function(){a(this).stop(!1,!1).fadeTo(null,c)})},border:function(b,c,d){var e=a(b);a("<img />").one("load",function(){var b=e.width(),f=e.height(),g={top:0,left:0},h=function(){i.stop(!1,!1).animate({"border-left-width":0,"border-top-width":0,"border-right-width":0,"border-bottom-width":0,top:g.top,left:g.left},{duration:250,complete:function(){i.css("display","none")}})},i=a('<img src="'+e.attr("src")+'"/>').width(b).height(f).mouseleave(h).css({display:"none",position:"absolute",top:g.top,left:g.left,border:"0px solid "+c});a("body").append(i),e.mouseenter(function(){g=e.offset(),i.stop(!1,!1).css({display:"block",top:g.top,left:g.left,"border-width":0}).animate({"border-left-width":d,"border-top-width":d,"border-right-width":d,"border-bottom-width":d,top:g.top-d,left:g.left-d},{duration:250})}).mouseleave(h)}).attr("src",e.attr("src"))},glow:function(b,c,d){d=d||"#FF9900",c=c||5;var f=a(b),g=null,h=e.supportsCSS("boxShadow"),i=0,j={},k=h+"Blur";if(h){var l=function(){g.stop(!1,!1).animate({"fake-property":c},{step:function(a,b){i=a,g.css(h,"0 0 "+Math.round(a)+"px "+d)}})},m=function(){g.stop(!1,!1).animate({"fake-property":0},{step:function(a,b){i=a,g.css(h,"0 0 "+Math.round(a)+"px "+d)}})};a("<img />").one("load",function(){var b=f.width(),c=f.height(),d={top:0,left:0};g=a("<div />").width(b).height(c).css({display:"none",position:"absolute"}).hover(null,m),a("body").append(g),f.hover(function(){d=f.offset(),g.css({display:"block",top:d.top,left:d.left}),l()},m)}).attr("src",f.attr("src"))}},jump:function(b,c,d){d=!!d,b=a(b);var e=function(){b.stop(!1,!1).animate({top:g.top,left:g.left},{duration:100,complete:function(){j.css({overflow:"hidden","z-index":i})}})},g=b.position(),h=b.height(),i,j;b.css({position:"absolute",top:g.top,left:g.left}),j=b.parents("[id*='imCell']"),i=j.css("z-index"),b.mouseover(function(){j.css({overflow:"visible","z-index":f.zIndex.menu+1}),b.stop(!1,!1).animate({top:g.top-h*c/100},{duration:100,complete:function(){d||e()}})}).mouseleave(function(){d&&e()})},rotate:function(b,c,d){d||(d=.25);var g=e.supportsCSS("transform"),h=e.supportsCSS("transition"),i,j,k=null;b=a(b).css(h,"all "+d+"s ease-in-out 0s").css(g,"none"),g&&h&&(j=b.parents("[id*='imCell']"),i=j.css("z-index"),b.parent().mouseover(function(){j.css({overflow:"visible","z-index":f.zIndex.menu+1}),k&&clearTimeout(k),k=setTimeout(function(){b.css(g,"rotate("+c+"deg)")},10)}).mouseleave(function(){b.css(g,"rotate(0deg)"),k&&clearTimeout(k),k=setTimeout(function(){j.css({overflow:"hidden","z-index":i})},d*1e3)}))},overlay:function(b,c,d){var e=a(b),f;a("<img />").one("load",function(){f=a("<img />").css("display","none").one("load",function(){e.after(f);var a=e.position(),b=e.height(),c=e.width(),g=d.substring(d.indexOf("-")+1),h=d.substring(0,d.indexOf("-")),i=f.width(),j=f.height(),k=a.left+(g=="center"?(c-i)/2:g=="right"?c-i:0),l=a.top+(h=="center"?(b-j)/2:h=="bottom"?b-j:0);f.css({position:"absolute",top:l,left:k,"z-index":3}),e.parent().mouseenter(function(){f.stop(!1,!0).fadeIn(250)}).mouseleave(function(){f.stop(!1,!0).fadeOut(250)})}).attr("src",c)}).attr("src",e.attr("src"))},innerZoom:function(b,c,d,f){if(f===null||f===undefined)f=!0;d=a.extend({family:"tahoma",size:"8pt",color:"black",style:"normal",weight:"normal"},d),b=a(b);var g=e.supportsCSS("opacity"),h,i=b.width(),j=b.height(),k=a("body"),l=function(){f||b.parents("[id*='imCell_']").css("overflow","visible")},m=function(){f||b.parents("[id*='imCell_']").css("overflow","hidden")},n=function(){b.stop(!1,!1).animate({width:i*(f?2:1.5),height:j*(f?2:1.5),top:-j/(f?2:3),left:-i/(f?2:3),opacity:0},{complete:function(){m(),b.css("display","none")}})},o=function(){b.css("display","block"),b.stop(!1,!1).animate({width:i,height:j,top:0,left:0,opacity:1},{complete:function(){m()}})};b.parent().is("a")||b.wrap("<div />"),h=b.parent().css({display:"inline-block",position:"relative"}).width(b.width()).height(b.height()),h.prepend(a("<span />").css({position:"absolute",top:0,left:0,"font-family":d.family,color:d.color,"font-style":d.style,"font-weight":d.weight,"font-size":d.size,overflow:f?"hidden":"visible","text-align":"center",display:"block",width:"100%"}).html(e.htmlspecialchars_decode(c))),b.css({position:"absolute",top:0,left:0}),h.is("a")&&h.find("a").length&&h.find("a").click(function(a){a.stopImmediatePropagation()}),"touchstart"in document||"ontouchstart"in document?function p(){h.one("click",function(){return n(),!1}).one("mouseleave",function(){l(),o(),p()})}():h.mouseenter(function(){l(),n()}).mouseleave(function(){l(),o()})},pulse:function(b,c,d){if(d===null||d===undefined)d=!0;b=a(b);var e,f=b.width(),g=b.height(),h=b.position(),i=a("body"),j=function(){d||b.parents("[id*='imCell_']").css("overflow","visible")},k=function(){d||b.parents("[id*='imCell_']").css("overflow","hidden")};b.css({position:"absolute",top:h.top,left:h.left}).mouseover(function(){j(),b.stop(!1,!1).animate({width:f*(1+c),height:g*(1+c),top:h.top-g*c/2,left:h.left-f*c/2},{duration:100,complete:function(){b.stop(!1,!1).animate({width:f,height:g,top:h.top,left:h.left},{duration:100,complete:function(){k()}})}})})}}})}(_jq,x5engine),function(a,b,c){"use strict",a.extend(b,{mediaObject:function(d){var e=a.extend({width:null,height:null,contentWidth:null,contentHeight:null,type:"image",showVideoControls:!1,url:null,html:"",effect:"fade",onclick:null,description:"",thumb:null,moves:[],autoplayTime:5e3,loop:!1,touchDevice:!1,allowFrameTransparency:!1,protect:!1,deferredCaching:!1,load:null,error:null,baseUrl:"",loadingImageUrl:"res/imLoad.gif",videoPlayerUrl:"res/imVideo.swf",audioPlayerUrl:"res/imSound.swf"},d),f=a(c),g=a(document),h=null,i=null,j=this,k=0,l=0,m=null,n="id"+Math.round(Math.random()*1e8),o=/(iPad|iPhone)/i.test(navigator.userAgent);f.imageCache=[];var p=f.imageCache[n]=[],q=!0,r=null,s=null,t=null,u=null,v=null,w=null,x=null,y=null,z=!1,A=!1,B=!1,C=null,D=function(d){h!==null&&(h.remove(),h=null);var f="",g=null,k=0,l={},n=!1,o="",p="",r="",s=function(){i=a("<img />"),e.thumb!==null&&e.thumb!==undefined?i.attr("src",e.thumb):typeof e.url=="string"&&e.url!==null&&(e.url.indexOf(".gif")!=-1||e.url.indexOf(".png")!=-1||e.url.indexOf(".jpg")!=-1||e.url.indexOf(".jpeg")!=-1)&&i.attr("src",e.url),i.css("cursor","pointer"),e.effect!="random"&&(b.effects[e.effect]!==undefined&&b.effects[e.effect]!==null?m=b.effects[e.effect]:b.effects[e.effect]!==undefined&&b.effects[e.effect]!==null||b.effects.fade===undefined?m={animateIn:function(b,c,d,e,f){var g=b.DOMObject();d=a(d),g.css({position:"absolute",top:0,left:0}),d.append(g),g.show(0),a.isFunction(e)&&e()},animateOut:function(b,c,d,e){a(b.DOMObject()).detach(),a.isFunction(d)&&d()}}:m=b.effects.fade),e.touchDevice&&h.bind("animate_in_start",function(){var a=h[0];a.removeEventListener("touchstart",H),a.addEventListener("touchstart",H),a.removeEventListener("touchmove",I),a.addEventListener("touchmove",I),a.removeEventListener("touchend",J),a.addEventListener("touchend",J),a.removeEventListener("gesturestart",K),a.addEventListener("gesturestart",K),a.removeEventListener("gesturechange",L),a.addEventListener("gesturechange",L),a.removeEventListener("gestureend",M),a.addEventListener("gestureend",M)}),a.isFunction(d)&&d(j)},t=function(a){switch(a){case"video/mp4":return"avc1.42E01E, mp4a.40.2, avc1.4D401E, mp4a.40.2";case"video/ogv":case"video/ogg":return"theora, vorbis";case"video/webm":return"vp8.0, vorbis";case"audio/ogg":return"vorbis";case"audio/mp4":return"mp4a.40.5";default:return""}};switch(e.type){case"video":var u=document.createElement("video"),v="";n=!1,typeof e.url=="string"&&(e.url=[{src:e.url}]);if(typeof e.url=="object"){for(k=0;k<e.url.length;k++){p=e.url[k].type?e.url[k].type:"video/"+e.url[k].src.substring(e.url[k].src.lastIndexOf(".")+1,e.url[k].src.length),(v=t(p))!==""&&(p+='; codecs="'+v+'"');try{u.canPlayType!==undefined&&u.canPlayType(p)=="probably"&&(n=!0,l[p]=e.url[k].src)}catch(w){}}if(!n)for(k=0;k<e.url.length;k++)p=e.url[k].type?e.url[k].type:"video/"+e.url[k].src.substring(e.url[k].src.lastIndexOf(".")+1,e.url[k].src.length),l[p]=e.url[k].src}h=a("<div />").width(e.width).height(e.height).css({"background-color":"black",cursor:"pointer"}).attr({"data-width":e.width,"data-height":e.height});if(n){var x=null,y=null,z=!1,A=function(){S("play")},B=function(){S("pause")};h.bind("animate_out_start",function(){y!==null&&y!==undefined&&y.length>0&&(y.remove(),y=null),x!==null&&x.paused!==!0&&x.pause(),x.removeEventListener("play",A),x.removeEventListener("pause",B)}),h.bind("animate_in_end",function(){h.empty(),u=a("<video />").width(e.width).height(e.height).attr({autoplay:!1,controls:!1,height:e.height,width:e.width,loop:!1,preload:"metadata"});for(var b in l)u.append(a("<source />").attr({src:l[b],type:b}));h.width(e.width).height(e.height).attr({cursor:"pointer"}).append(u),x=u[0],N(),x.addEventListener("play",A),x.addEventListener("pause",B)});var D=null,F=function(){G(),u!==null&&u!==undefined&&u.length>0&&(D=a("<span />").html("Buffering...").css({padding:5,"font-family":"Arial","background-color":"gray",color:"white",position:"absolute",top:-1,left:0,"border-radius":"0 0 5px 0",display:"block"}),u.after(D))},G=function(){D!==null&&D!==undefined&&D.length>0&&(D.remove(),D=null)},N=function(){y=a(document.createElement("div"));var b=a(document.createElement("div"));y.css({"background-color":"transparent","border-style":"none","border-radius":"10px",position:"absolute",display:"none",top:(h.height()-80)/2,left:(h.width()-80)/2}).width(80).height(80),u[0].paused?b.css({"border-color":"transparent transparent transparent #aaa","border-width":"34px 0 35px 49px",margin:"2px 0 0 3px"}).width(1).height(1):b.css({"border-color":"transparent #aaa transparent #aaa","border-width":"0 15px 0 15px",margin:"3px 0 0 2px"}).width(16).height(70),b.css({"border-style":"solid",top:2.5,left:15,position:"absolute"}),h.append(y.append(b).fadeOut(0)),y.fadeTo(250,.8)},O=function(){y!==null&&y!==undefined&&y.length>0&&y.fadeOut(250,function(){a(this).remove()})},P=function(){x.readyState!=4?(x.removeEventListener("load",j.Play,!1),x.addEventListener("load",j.Play,!1),x.removeEventListener("canplaythrough",j.Play,!1),x.addEventListener("canplaythrough",j.Play,!1),F(),setTimeout(function(){x.pause()},1)):G()},Q=null,R="pause",S=function(a){a!=R&&(R=a,h.triggerHandler("status_change",[R]),Q!==null&&clearInterval(Q),a=="play"&&(Q=setInterval(function(){h.triggerHandler("playing",[x.currentTime])},500)))};j.Play=function(){return O(),x.play!==undefined?(x.removeEventListener("onreadystatechange",P,!1),x.addEventListener("onreadystatechange",P,!1),x.play(),P(),S("play"),!0):!1},j.Pause=function(){return O(),x.pause!==undefined?(G(),x.pause(),N(),S("pause"),!0):!1},j.Stop=function(){return j.Pause()},j.Volume=function(a){return a!==null&&a!==undefined?x.volume=a:x.volume},j.CurrentPosition=function(a){return a!==null&&a!==undefined?x.currentTime=a:x.currentTime},j.Duration=function(){return x.duration},j.Progress=function(){return x.buffered?x.buffered.length:0},j.FullScreen=function(){var b=!1;try{x.enterFullscreen?(b=!0,x.enterFullscreen()):x.webkitEnterFullscreen?(b=!0,x.webkitEnterFullscreen()):x.mozRequestFullScreen&&(b=!0,x.mozRequestFullScreen())}catch(c){}finally{if(!b){var d=a("<div />").css({position:"absolute",left:0,right:0,top:0,"font-size":"9pt","font-family":"sans",padding:3,"background-color":"#999999",color:"white"}).html("Fullscreen is not supported on this browser.");h.append(d.delay(2e3).fadeOut(500,function(){d.remove()}))}}},h.click(function(a){a.preventDefault(),x.paused===!0?j.Play():j.Pause()}),e.touchDevice||h.mouseenter(function(){u[0].paused||N()}).mouseleave(function(){u[0].paused||O()})}else if(l["video/flv"]!==undefined||l["video/mp4"]!==undefined)q=!1,g=a(document.createElement("div")),f="imvideoplayer_"+Math.round(Math.random()*1e8),g.attr("id",f),h.append(g),h.bind("animate_in_end",function(){var a=(l["video/flv"]?l["video/flv"]:l["video/mp4"]).replace("../",""),b={cWidth:e.width,cHeight:e.height,fileName:(a.indexOf("http://")!==0&&a.indexOf("file://")!==0?"../":"")+a},d={quality:"high",bgcolor:"#ffffff",play:"true",loop:"true",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},g={id:f,name:f,align:"middle"},i=null;j.Play=function(){return h.parent().css({"background-image":"url('"+e.baseUrl+e.loadingImageUrl+"')","background-repeat":"no-repeat","background-position":"center center"}),h.triggerHandler("status_change",["play"]),i=setTimeout(j.Play,250),!0},j.Pause=function(){i&&clearTimeout(i),h.triggerHandler("status_change",["pause"]),h.parent().css("background-image","url('')")},c.swfobject.embedSWF(e.baseUrl+e.videoPlayerUrl,f,e.width,e.height,"10.0.0",e.baseUrl+"res/expressInstall.swf",b,d,g,function(a){h.parent().css("background-image","url('')");if(a.success){var b=document.getElementById(f),c=null;q=!1,j.Play=function(){try{return c!==null&&clearTimeout(c),b.FlashPlay?b.FlashPlay():c=setTimeout(j.Play,100),!0}catch(a){c=setTimeout(j.Play,100)}return!1},j.Pause=function(){try{return c!==null&&clearTimeout(c),b.FlashPause?b.FlashPause():c=setTimeout(j.Pause,100),!0}catch(a){c=setTimeout(j.Pause,100)}return!1};var d=!1,e=setInterval(function(){try{b.FlashIsPlaying()&&h.triggerHandler("playing",[j.CurrentPosition()]),b.FlashIsPlaying()!=d&&(d=b.FlashIsPlaying(),h.triggerHandler("status_change",[d?"play":"pause"]))
}catch(a){}},100);j.Stop=function(){return j.Pause()},j.Volume=function(a){return a!==null&&a!==undefined?b.FlashSetVolume(a):b.FlashGetVolume()},j.CurrentPosition=function(a){return a!==null&&a!==undefined?b.FlashScroll(a):b.FlashCurrentPosition()},j.Duration=function(){try{return b.FlashLength()}catch(a){return 0}},j.Progress=function(){try{return b.FlashProgress()}catch(a){return 0}},j.FullScreen=function(){try{return b.FlashFullScreen()}catch(a){return!1}}}else h.empty().html('<div style="margin-top: 10px;">Your browser must support HTML5 or <a style="color: white; text-decoration: underline;" href="http://www.adobe.com/go/getflashplayer" rel="nofollow" target="_blank">Adobe Flash™</a></div>').css({"text-align":"center",color:"white",cursor:"default"})})});else if(l["video/mov"]!==undefined||l["video/aiff"]!==undefined||l["video/m4a"]!==undefined){var T=l["video/mov"]?l["video/mov"]:l["video/aiff"]?l["video/aiff"]:l["video/m4a"],U='<object width="'+e.width+'" height="'+e.height+'" type="application/quicktime">\n';U+=' <param name="codebase" value="http://www.apple.com/qtactivex/qtplugin.cab">\n',U+=' <param name="src" value="'+T+'">\n',U+=' <param name="autoplay" value="'+(e.autoPlay?"true":"false")+'">\n',U+=' <param name="controller" value="'+(e.showVideoControls?"true":"false")+'">\n',U+=' <embed src="'+T+'" width="'+e.width+'" height="'+e.height+'" autoplay="'+(e.autoPlay?"true":"false")+'" controller="'+(e.showVideoControls?"true":"false")+'" pluginspage="http://www.apple.com/quicktime/download/" />',U+="</object>",h=a(U)}else{var V="";/MSIE/.test(navigator.userAgent)&&(V+=' <object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="'+e.width+'" height="'+e.height+'">\n',V+=' <param name="url" value="'+l[0]+'" />\n',V+=' <param name="ShowControls" value="'+(e.showVideoControls?"1":"0")+'" />\n',V+=' <param name="uiMode" value="'+(e.showVideoControls?"full":"none")+'" />\n',V+=' <param name="autostart" value="'+(e.autoPlay?"true":"false")+'" />\n',V+=' <param name="ShowDisplay" value="false">\n',V+=' <param name="ShowStatusBar" value="false">\n',V+=' <param name="ShowDisplay" value="false">\n'),V+='<object width="'+e.width+'" height="'+e.height+'" type="application/x-mplayer2">\n',V+=' <param name="url" value="'+l[0]+'" />\n',V+=' <param name="ShowControls" value="'+(e.showVideoControls?"1":"0")+'" />\n',V+=' <param name="uiMode" value="'+(e.showVideoControls?"full":"none")+'" />\n',V+=' <param name="autostart" value="'+(e.autoPlay?"true":"false")+'" />\n',V+=' <param name="ShowDisplay" value="false">\n',V+=' <param name="ShowStatusBar" value="false">\n',V+=' <param name="ShowDisplay" value="false">\n',V+=' <embed type="application/x-mplayer2" src="'+l[0]+'" id="MediaPlayer" width="'+e.width+'" height="'+e.height+'" ShowControls="'+(e.showVideoControls?"1":"0")+'" ShowStatusBar="0" ShowDisplay="0" autostart="0" />\n',V+="</object>\n",V+='<div style="position: absolute; width: 100%; top: '+(e.height/2+20)+'px; text-align: center;"><a target="_blank" style="color: black; text-decoration: none; font-family: Arial, sans;" href="http://windows.microsoft.com/en-US/windows/downloads/windows-media-player">Install Media Player Plugin</a></div>\n',/MSIE/.test(navigator.userAgent)&&(V+=" </object>\n"),h=a(V)}s();break;case"audio":case"sound":f="imaudioplayer_"+Math.round(Math.random()*1e8),h=a("<audio />").attr("id",f),n=!1,typeof e.url=="string"&&(e.url=[{src:e.url}]);if(typeof e.url=="object"){for(k=0;k<e.url.length;k++){p=e.url[k].type?e.url[k].type:"audio/"+e.url[k].src.substring(e.url[k].src.lastIndexOf(".")+1,e.url[k].src.length),(v=t(p))!==""&&(p+='; codecs="'+v+'"');try{h.canPlayType!==undefined&&h.canPlayType(p)=="probably"&&(n=!0,l[p]=e.url[k].src)}catch(w){}}if(!n)for(k=0;k<e.url.length;k++){p=e.url[k].type?e.url[k].type:"audio/"+e.url[k].src.substring(e.url[k].src.lastIndexOf(".")+1,e.url[k].src.length);if(p=="audio/mp3"||p=="audio/flv")l[p]=e.url[k].src}}if(n){h.attr({loop:e.loop?"loop":null,preload:"metadata"});for(p in l)h.append(a("<source />").attr({type:p,src:l[p]}));j.Play=function(){h[0].play(),h.triggerHandler("status_change",["play"])},j.Pause=function(){h[0].pause(),h.triggerHandler("status_change",["pause"])},j.Stop=function(){return j.Pause()},j.Volume=function(a){return a!==null&&a!==undefined?h[0].volume=a:h[0].volume},j.CurrentPosition=function(a){return a!==null&&a!==undefined?h[0].currentTime=a:h[0].currentTime},j.Duration=function(){return h[0].duration},j.Progress=function(){return h[0].buffered?h[0].buffered.length:0}}else if(l["audio/mp3"]!==undefined||l["audio/flv"]!==undefined||l["audio/mp4"]!==undefined){h.remove(),h=a("<div />").attr("id",f);var W=null;j.Play=function(){return W=setTimeout(j.Play,1e3),!1},j.Pause=function(){return W&&clearTimeout(W),!1},h.bind("animate_in_end",function(){var b={fileName:l["audio/mp3"]?l["audio/mp3"]:l["audio/mp4"]?l["audio/mp4"]:l["audio/flv"]},d={quality:"high",bgcolor:"#ffffff",play:"true",loop:"false",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},g={id:f,name:f,align:"middle",allowscriptaccess:"always"};c.swfobject.embedSWF(e.baseUrl+e.audioPlayerUrl+"?no_cache="+Math.round(Math.random()*1e8),f,"1","1","10.0.0","res/expressInstall.swf",b,d,g,function(b){if(b.success){var d=document.getElementById(f),g=null;j.Play=function(){try{return g!==null&&clearTimeout(g),d.FlashPlay?d.FlashPlay():g=setTimeout(j.Play,100),!0}catch(a){"console"in c&&c.console.log(a.message),g=setTimeout(j.Play,100)}return!1},j.Pause=function(){try{return g!==null&&clearTimeout(g),d.FlashPause?d.FlashPause():g=setTimeout(j.Pause,100),!0}catch(a){g=setTimeout(j.Pause,100)}return!1};var i=!1,k=setInterval(function(){try{d.FlashIsPlaying()&&h.triggerHandler("playing",[j.CurrentPosition()]),d.FlashIsPlaying&&d.FlashIsPlaying()!=i&&(i=d.FlashIsPlaying(),h.triggerHandler("status_change",[i?"play":"pause"]))}catch(a){}},500);j.Stop=function(){return j.Pause()},j.Volume=function(a){return a!==null&&a!==undefined?d.FlashSetVolume(a):d.FlashGetVolume()},j.CurrentPosition=function(a){return a!==null&&a!==undefined?d.FlashScroll(a):d.FlashCurrentPosition()},j.Duration=function(){try{return d.FlashLength()}catch(a){return 0}},j.Progress=function(){return d.FlashProgress()}}else if(l["audio/mp3"]!==null&&l["audio/mp3"]!==undefined){var m=null;j.Play=function(){return a("body").append(m=a("<embed />").attr({type:"audio/mp3",id:f,src:l["audio/mp3"],loop:e.loop,autostart:!0,hidden:!0}).height(0)),!0},j.Pause=function(){return m===null?!1:(m.remove(),!0)},j.Stop=function(){return m===null?!1:(m.remove(),!0)}}})})}s();break;case"youtube":q=!1,h=a("<div />").css({"background-color":"black"}).width(e.width).height(e.height),g=null,f="imytplayer_"+Math.round(Math.random()*1e8,10),h.append(a("<div />").attr("id",f)).attr({"data-width":e.width,"data-height":e.height}),r=e.url.replace(/http\:\/\/[w]*\.?youtube\.com\/watch\?v=/g,""),r=r.replace(/http\:\/\/youtu\.be\/?/g,""),r.indexOf("&")!=-1&&(r=r.substring(0,r.indexOf("&")));var X=null;a("#ytjsapi").length===0&&(X=a("<script />").attr({id:"ytjsapi",type:"text/javascript",src:"http://www.youtube.com/iframe_api"}),a("head").append(X),c.onYouTubeIframeAPIReady=function(){b.youtube.jsApiIsLoaded=!0,a("body").triggerHandler(b.youtube.apiLoadedEventName)});var Y=!1,Z=function(){b.youtube.jsApiIsLoaded?g=new c.YT.Player(f,{height:e.height,width:e.width,videoId:r,events:{onReady:function(){Y=!0},onError:function(a){var b="";switch(a.data){case 2:b="The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.";break;case 100:b="The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.";break;case 101:case 150:b="The owner of the requested video does not allow it to be played in embedded players."}h.empty().append(b)}},playerVars:{controls:e.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1"}}):a("body").unbind(b.youtube.apiLoadedEventName,Z).bind(b.youtube.apiLoadedEventName,Z)};j.Play=function(){Y?g.playVideo():(C!==null&&clearTimeout(C),C=setTimeout(j.Play,1e3))},j.Pause=function(){Y?g.pauseVideo():(C!==null&&clearTimeout(C),C=setTimeout(j.Pause,1e3))},h.bind("animate_in_end",Z),s();break;case"vimeo":q=!1,f="imvimeoplayer_"+Math.round(Math.random()*1e8,10),h=a("<div />").css("background-color","black").width(e.width).height(e.height),g=a("<iframe />"),h.append(g).attr({"data-width":e.width,"data-height":e.height}),r=e.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/http?\:\/\//g,""),g.attr({src:"http://player.vimeo.com/video/"+r+"?byline=0&portrait=0&api=1&player_id="+f,width:e.width,height:e.height,frameborder:0}),s();break;case"code":case"html":h=a("<div />"),h.html(b.utils.htmlspecialchars_decode(e.html)).width(e.width).height(e.height),s();break;case"swf":var _="swfplayer_"+Math.round(Math.random()*1e3);h=a("<div />").html('<div id="'+_+'"></div>'),h.bind("animate_in_end",function(){var a={},b={quality:"high",bgcolor:"#ffffff",play:"true",loop:"false",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},d={id:_,name:_,align:"middle",allowscriptaccess:"always"};c.swfobject.embedSWF(e.url,_,e.width,e.height,"10.0.0","res/expressInstall.swf",a,b,d)}),s();break;case"dom":h=a(e.url).width(e.width).height(e.height).attr({"data-width":e.width,"data-height":e.height}),s();break;case"iframe":case"url":h=a("<iframe />",{allowFrameTransparency:e.allowFrameTransparency?"true":"false",src:e.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0"}).width(e.width).height(e.height),s();break;default:var ab=function(){var b=E(e.width,e.height,e.contentWidth,e.contentHeight,!0);h.css({position:"absolute",left:b.x,top:b.y}),e.touchDevice&&h.css("-webkit-backface-visibility","hidden"),h.width(b.width).height(b.height),!e.onclick||(a.isFunction(e.onclick)?h.click(e.onclick).css("cursor","pointer"):e.onclick.indexOf("http")===0&&(h.css("cursor","pointer"),c.location.href=e.onclick));if(e.protect){var d=h;h=a("<canvas />");try{if(!h.get(0).getContext||!h.get(0).getContext("2d"))h=d;else{h.attr({"data-width":e.width,"data-height":e.height}).width(e.width).height(e.height).css({position:"absolute",left:b.x,top:b.y}).bind("dragstart",function(a){return a.preventDefault(),!1});var f=h.get(0).getContext("2d");f.canvas.width=e.width,f.canvas.height=e.height,f.drawImage(d[0],0,0,e.width,e.height)}}catch(g){h=d}h.bind("contextmenu",function(a){return!1})}s()};h=a("<img />").attr("src",e.url);if(!e.width||!e.height){var bb=a("<img />").css({position:"absolute",top:-1e4}).one("load",function(){var b=a(this);e.width=b.width(),e.height=b.height(),h.attr({"data-width":e.width,"data-height":e.height}),b.remove(),ab()});a("body").prepend(bb),bb.attr("src",h.attr("src"))}else h.attr({"data-width":e.width,"data-height":e.height}),ab()}h.attr("unselectable","on").css("user-select","none")},E=function(a,b,c,d,f){return f=!!f,f&&e.type!="dom"&&e.type!="html"&&(c<a&&(b=c/a*b,a=c),d<b&&(a=d/b*a,b=d)),{x:(c-a)/2,y:(d-b)/2,width:a,height:b}},F=function(a,b){var c=e.width,d=e.height,f=b.parent().width(),g=b.parent().height(),h={x:(-f*a.x+(f-c)/2)*a.z+f/2,y:(-g*a.y+(g-d)/2)*a.z+g/2,z:a.z};return h},G=function(a,b){if(b>e.moves.length-1||e.moves[b]===undefined)return;var c=E(e.width*e.moves[b].z,e.height*e.moves[b].z,e.contentWidth,e.contentHeight,!0),d=F(e.moves[b],a);a.animate({left:e.moves[b].z<=1?c.x:d.x,top:e.moves[b].z<=1?c.y:d.y,width:Math.round(e.width*d.z),height:Math.round(e.height*d.z)},{duration:e.autoplayTime/(e.moves.length-1),complete:function(){G(a,b+1)}}),h.bind("animate_out_start",function(){a.stop(!1,!1)})},H=function(b){a.isFunction(v)&&b.touches.length==1&&v(b),x=b,z=!1,A=b.touches.length==2,B=b.touches.length>2},I=function(b){!u&&(!!r&&b.touches.length==1||!!s&&b.touches.length==2||!!t&&b.touches.length>2)&&b.preventDefault();if(a.isFunction(u)&&b.touches.length==1){var c=o?x:x.touches[0],d=o?b:b.touches[0];u(b,{startX:c.pageX,startY:c.pageY,offsetX:d.pageX-c.pageX,offsetY:d.pageY-c.pageY})}z=!0,y=b},J=function(b){if(!z)h.click();else if(a.isFunction(r)&&!!y&&x.touches.length==1){var c=o?x:x.touches[0],d=o?y:y.touches[0];r(b,{startX:c.pageX,startY:c.pageY,offsetX:d.pageX-c.pageX,offsetY:d.pageY-c.pageY})}},K=function(a){(B&&!!t||A&&!!s)&&a.preventDefault()},L=function(b){B&&!!t&&b.preventDefault(),A&&!!s&&!w&&b.preventDefault(),!!w&&a.isFunction(w)&&w(b)},M=function(b){B&&a.isFunction(t)?t(b):A&&a.isFunction(s)&&s(b)};this.Cache=function(c){a.extend({load:null,error:null},c);switch(e.type){case"image":/^[0-9]+$/.test(e.url)&&(e.url=b.utils.yaKnowWhatToDo(e.url)),p[p.length]=new Image;var d=a(p[p.length-1]);d.one("load",function(){e.thumb?(p[p.length]=new Image,d=a(p[p.length-1]),d.load(function(){a(this).unbind("load"),D(c.load)}).bind("error",function(){e.thumb=null,D(c.load)}),d.attr("src",e.thumb)):D(c.load)}).bind("error",function(){a.isFunction(c.error)&&c.error(j,404)}),d.attr("src",e.url);break;case"video":case"youtube":case"vimeo":e.thumb!==null&&e.thumb!==undefined?(p[p.length]=new Image,d=a(p[p.length-1]),d.load(function(){a(this).unbind("load"),D(c.load)}).bind("error",function(){e.thumb=null,D(c.load)}),d.attr("src",e.thumb)):D(c.load);break;default:D(c.load)}},this.TriggerAnimationInStart=function(){return h.triggerHandler("animate_in_start"),j},this.TriggerAnimationInEnd=function(){return h.triggerHandler("animate_in_end"),j},this.TriggerAnimationOutStart=function(){return h.triggerHandler("animate_out_start"),j},this.TriggerAnimationOutEnd=function(){return h.triggerHandler("animate_out_end"),j},this.AnimateIn=function(c,d,f){h.find("embed, object, iframe").css("display","none");var g=function(b){var c=b.DOMObject();c.find("embed, object, iframe").css("display","block"),c.trigger("animate_in_end"),e.moves.length>1&&e.type==="image"&&G(h,1),a.isFunction(d)&&d(b)},i=null,k=E(h.attr("data-width"),h.attr("data-height"),e.contentWidth,e.contentHeight,!0);h.css("position","absolute");if(e.moves.length>0&&e.type==="image"){var l=F(e.moves[0],h);i={y:l.y,x:l.x,width:Math.round(k.width*l.z),height:Math.round(k.height*l.z)}}else e.type!="dom"&&e.type!="html"?i={y:k.y,x:k.x,width:k.width,height:k.height}:i={y:0,x:0,width:k.width,height:k.height};h.trigger("animate_in_start");if(e.effect=="random"){var n=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],o=Math.max(0,Math.floor(Math.random()*n.length));b.effects[n[o]]?m=b.effects[n[o]]:m=b.effects.fade}if(m!==null&&m!==undefined){var p=b.utils.supportsCSS("transformOrigin"),q=b.utils.supportsCSS("transform");p&&h.css(p,"50% 50%"),q&&h.css(q,"none"),m.animateIn(j,i,c,g,f)}else h.trigger("animate_in_end")},this.AnimateOut=function(c,d,f){h.find("embed, object, iframe").css("display","none");var g=function(b){var c=b.DOMObject();c.trigger("animate_out_end"),a.isFunction(d)&&d(b)};if(e.effect=="random"&&m=="random"){var i=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],k=Math.max(0,Math.floor(Math.random()*i.length));m=b.effects[i[k]]}h.trigger("animate_out_start"),m!==null&&m!==undefined?m.animateOut(j,c,g,f):h.trigger("animate_out_end")},this.DOMObject=function(){return h},this.GetThumb=function(){return i},this.Type=function(){return e.type},this.Play=function(){return!1},this.Pause=function(){return!1},this.Stop=function(){return!1},this.Volume=function(a){return 0},this.CurrentPosition=function(a){return 0},this.Duration=function(){return 0},this.GetDescription=function(){return b.utils.htmlspecialchars_decode(e.description)},this.AutoplayTime=function(){return e.autoplayTime},this.OnPlaying=function(a){h.bind("playing",a)},this.OnStatusChange=function(a){h.bind("status_change",a)},this.Width=function(){return e.moves.length===0?e.width!==null?e.width:h.attr("data-width"):e.moves[0].z*e.width},this.Height=function(){return e.moves.length===0?e.height!==null?e.height:h.attr("data-height"):e.moves[0].z*e.height},this.ContentHeight=function(a){if(a===null||a===undefined)return e.contentHeight;e.contentHeight=a},this.ContentWidth=function(a){if(a===null||a===undefined)return e.contentWidth;e.contentWidth=a},this.Overlay=function(){return q},this.AfterPinch=function(a){return s=a,j},this.Pinch=function(a){return w=a,j},this.Gesture=function(a){return t=a,j},this.Move=function(a){return u=a,j},this.AfterMove=function(a){return r=a,j},this.BeforeMove=function(a){return v=a,j},this.FullScreen=function(){return!1},e.deferredCaching||this.Cache({load:e.load,error:e.error})}})}(_jq,x5engine,window),function(a,b){"use strict",a.extend(b,{mediaPlayer:function(c){c=a.extend({url:"",type:"audio",width:400,height:400,target:"body",controlBar:!1,controlsHeight:30,guiColor:"#cccccc",bgColor:"#000000",autoHideControls:!1,autoplay:!1,loop:!1,fullScreen:!1,baseUrl:"",videoPlayerUrl:"res/imVideo.swf",audioPlayerUrl:"res/imSound.swf"},c);var d=a(c.target),e=null,f=null,g=null,h=null,i=null,j=null,k=0,l=0,m=null,n=null,o=null,p=b.utils.hex2rgb(c.guiColor,-50,-50,-50),q=b.utils.hex2rgb(c.guiColor,40,80,140),r=12,s=navigator.userAgent.match(/iPad/i)!==null||navigator.userAgent.match(/iPhone/i)!==null||navigator.userAgent.match(/iPod/i)!==null;s&&(c.autoHideControls=!1);var t=new b.mediaObject({url:c.url,type:c.type,effect:"none",width:c.width,showVideoControls:c.controlBar,height:c.height-(!c.autoHideControls&&c.type!="youtube"&&c.type!="vimeo"?c.controlsHeight:0),videoPlayerUrl:c.videoPlayerUrl,audioPlayerUrl:c.audioPlayerUrl,baseUrl:c.baseUrl,load:function(f){d.append(f.DOMObject()).css({"background-color":c.type!="audio"?c.bgColor:"transparent",position:"relative",margin:"0 auto"}).width(c.width).height(c.height),f.AnimateIn();if(c.controlBar!==!1&&c.type!="youtube"&&c.type!="vimeo"){var g=!1,h=b.utils.hex2rgb(c.guiColor,-15,-15,-15,!0),t=b.utils.hex2rgb(c.guiColor,15,15,15,!0);e=a("<div />").css({position:"absolute",bottom:0,left:0,right:0,"background-color":c.guiColor,"background-image":b.utils.cssPropertyPrefix("linear-gradient(bottom, "+h+" 0%, "+c.guiColor+" 50%, "+t+" 100%)")}).height(c.controlsHeight),d.append(e),i=a("<div />").css({cursor:"pointer","border-right":"1px solid "+h,"border-widht":"0 1px 0 0","background-color":c.guiColor,position:"absolute",left:0,bottom:0,"background-image":b.utils.cssPropertyPrefix("linear-gradient(bottom, "+h+" 0%, "+c.guiColor+" 50%, "+t+" 100%)")}).height(c.controlsHeight).width(c.controlsHeight-1).click(function(){f.Play()});var u=a("<div />").css({"border-color":"transparent transparent transparent "+p,"border-style":"solid","border-width":c.controlsHeight/3,margin:c.controlsHeight/2-c.controlsHeight/3+"px "+(c.controlsHeight/2-c.controlsHeight/6)+"px"}).width(0).height(0),v=a("<div />").css({"border-color":p,"border-style":"solid","border-width":"0 "+c.controlsHeight/6+"px 0 "+c.controlsHeight/6+"px",display:"none",margin:c.controlsHeight/2-c.controlsHeight/3+"px "+(c.controlsHeight/2-c.controlsHeight/4)+"px"}).width(c.controlsHeight/6).height(c.controlsHeight-c.controlsHeight/3);(c.type=="audio"&&c.controlBar!="playOnly"?d:e).append(i.append(u).append(v)),f.OnStatusChange(function(a,b){b=="play"?(u.hide(0),v.show(0),i.unbind("click").click(function(){f.Pause()})):(u.show(0),v.hide(0),i.unbind("click").click(function(){f.Play()}))});if(c.type=="video"&&c.fullScreen){o=a("<div />").css({position:"absolute",top:0,right:0,"border-left":"1px solid "+h,cursor:"pointer"}).width(c.controlsHeight).height(c.controlsHeight).attr("title","Full Screen").click(function(){f.FullScreen()}),e.append(o);var w=6,x=3,y=a("<div />"),z=a("<div />"),A=a("<div />"),B=a("<div />");o.append(y.add(z).add(A).add(B).css({"border-color":p,"border-style":"solid",position:"absolute"}).width(x).height(x)),d.parent().hasClass("fullScreen")?(y.css({top:w,left:w,"border-width":"0 2px 2px 0"}),z.css({top:w,right:w,"border-width":"0 0 2px 2px"}),A.css({bottom:w,right:w,"border-width":"2px 0 0 2px"}),B.css({bottom:w,left:w,"border-width":"2px 2px 0 0"})):(y.css({top:w,left:w,"border-width":"2px 0 0 2px"}),z.css({top:w,right:w,"border-width":"2px 2px 0 0"}),A.css({bottom:w,right:w,"border-width":"0 2px 2px 0"}),B.css({bottom:w,left:w,"border-width":"0 0 2px 2px"}))}else o=a("<div />").width(1).height(1),a("body").append(o);if(c.controlBar!="playOnly"){if(!s){var C=Math.max(c.width*.25,c.controlsHeight*1.8),D=.75;m=a("<div >").css({position:"absolute",bottom:0,right:o.outerWidth(),"border-left":"1px solid "+h}).width(C).height(c.controlsHeight).append(a("<div >").css({position:"absolute",top:(c.controlsHeight-20)/2,left:-7,"background-color":"transparent",border:"6px solid transparent","border-right-color":p,cursor:"pointer"}).width(10).height(6)).append(a("<div />").css({"background-color":p,position:"absolute",top:(c.controlsHeight-6)/2,left:5,cursor:"pointer"}).width(6).height(4)),m.find("div").click(function(){if(f.Volume()===0){var a=D*G.width()-r/2;f.Volume(D),H.css("left",D*G.width()-r/2),I.width(a)}else D=f.Volume(),f.Volume(0),H.css("left",0),I.width(0)});var E=null,F=a("<div />").css({position:"absolute",left:20,top:0}).width(C-26).height(c.controlsHeight).mousedown(function(a){g=!0;var b=Math.max(Math.min(a.pageX-G.offset().left-r/2,G.width()+r/2),0);f.Volume(b/G.width()),H.css("left",b),I.width(b)}).mouseup(function(){g=!1}).mouseleave(function(){g=!1}).mousemove(function(a){a.preventDefault();if(g){var b=Math.max(Math.min(a.pageX-G.offset().left-6,G.width()-4),0);f.Volume(b/G.width()),H.css("left",b),I.width(b)}}).bind("dragstart",function(){return!1}),G=a("<div />").css({position:"relative",margin:c.controlsHeight/2-1+"px auto","background-color":p}).width(C-35).height(2),H=a("<div />").css({position:"absolute",top:-6,left:.75*G.width()-6,"background-color":p,cursor:"pointer"}).width(6).height(13),I=a("<div />").css({position:"absolute",top:0,bottom:0,left:0,"background-color":q}).width(H.css("left"));m.append(F.append(G.append(I).append(H)))}else m=a("<div />").width(1).height(1),a("<body />").append(m);l=f.Duration(),j=a("<div /> ").css({position:"absolute",right:m.outerWidth()+o.outerWidth(),bottom:0,"font-family":"sans","font-size":"6pt",padding:"0 5px","line-height":c.controlsHeight+"px",color:p}).html("0:00/0:00"),e.append(j);if(c.width-m.outerWidth()-j.outerWidth()-c.controlsHeight-(o?o.outerWidth():0)>50){n=a("<div />").css({position:"absolute",left:c.controlsHeight,right:m.outerWidth()+j.outerWidth()+o.outerWidth(),top:0,bottom:0,cursor:"pointer"}).mousedown(function(){g=!0}).mouseup(function(){g=!1}).mousemove(function(a){if(g){var b=Math.max(Math.min(a.pageX-J.offset().left-r/2,J.width()-r/2),-r/2);K.css("left",b),L.width(b),f.CurrentPosition(N(b))}}).click(function(a){var b=Math.max(Math.min(a.pageX-J.offset().left-r/2,J.width()-r/2),-r/2);K.css("left",b),L.width(b),f.CurrentPosition(N(b))});var J=a("<div />").css({position:"absolute",top:c.controlsHeight/2-1,bottom:c.controlsHeight/2-1,"background-color":p,left:15,right:10}),K=a("<div />").css({position:"absolute",left:-r/2,top:-r/2,"background-color":p}).width(6).height(14),L=a("<div />").css({position:"absolute",left:0,top:0,bottom:0,"background-color":q}).width(0);e.append(n.append(J.append(K).append(L)))}var M=function(a){if(l===null)return 0;var b=Math.min(1,a/l);return J.width()*b-r/2},N=function(a){return l===null?0:(a+r/2)/J.width()*l};f.OnPlaying(function(a,b){var d=!1;(l===null||l===0||isNaN(l))&&e.is(":visible")&&(l=f.Duration(),d=!0);var h=function(a){return isNaN(a)?"00":a<10?"0"+a:a},i=function(a){return l<60?Math.floor(a):l<3600?Math.floor(a/60)+":"+h(Math.floor(a%60)):h(Math.floor(a/3600))+":"+h(Math.floor(a/60%60))+":"+h(Math.floor(a)%60)};j.html(i(b)+" / "+i(l)),d&&n.css("right",m.outerWidth()+j.outerWidth()+(o?o.outerWidth():0)),K!==null&&l!==null&&!g&&(K.is(":visible")?(K.css("left",M(b)),L.width(M(b))):k=b),l!==null&&l!==0&&l-.05<=b&&(f.CurrentPosition(0),j.html(i(0)+" / "+i(l)),K.is(":visible")?(K.css("left",M(0)),L.width(M(0))):k=0,c.loop?f.Play():f.Pause())}),e.append(m);if(c.autoHideControls){var O=null;e.hide(0),d.mouseleave(function(){O!==null&&clearTimeout(O),O=setTimeout(function(){e.stop(!1,!1).fadeOut(250)},1500)}).mouseenter(function(){O!==null&&clearTimeout(O),e.is(":visible")||e.stop(!1,!1).fadeTo(10,.1,function(){K.css("left",M(k)),L.width(M(k)),e.fadeTo(240,.999)})})}}}return c.autoplay&&f.Play(),{Stop:function(){f&&f.Stop()},Play:function(){f&&f.Play()}}}})}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{menu:function(b){b=a.extend({target:"#imMnMn",orientation:"horizontal",type:"singleColumn",effect:"fade",opacity:1,timeout:300,animationTime:200,menuHeight:25,menuWidth:120,submenuHeight:25,submenuWidth:160,alignment:"left",verticalScroll:!1,showCurrent:!1},b);var c=a(b.target),d,e=/MSIE 7/.test(navigator.userAgent),f=null,g=[],h=a(window),i=[],j=function(a,d){if(!a||!a.length)return;if(a.parent().closest("ul").parent().attr("id")==c.attr("id"))return;a.data("flip-direction",d).css("margin-left",d<0?-b.submenuWidth*2:0)},k=function(c){var d=c.children("ul, div"),e=0,f=0,k="false",m=null,n=null,o=null,p=null,q=null;d.stop(!0,!0),d.length>0&&c.siblings("li").each(function(){var b=a(this),c=b.attr("id");i[c]!==null&&i[c]!==undefined&&(clearTimeout(i[c]),l(b))}),b.type!="multipleColumn"&&b.alignment=="left"&&(n=c.offset(),o=c.children("ul"),p=c.closest("ul"),p.data("flip-direction")!=o.data("flip-direction")&&j(o,p.data("flip-direction")),o.data("flip-direction")==1&&n.left+b.submenuWidth*2>h.width()+h.scrollLeft()&&j(o,-1),o.data("flip-direction")==-1&&n.left-b.submenuWidth<h.scrollLeft()&&j(o,1));switch(b.effect){case"fade":d.fadeIn(b.animationTime);break;case"v-slide":d.slideDown(b.animationTime);break;case"h-slide":m=c.children(".jsOverflowControl");if(m.length){if(m.attr("vis")=="false"||m.attr("vis")===undefined)m.attr("vis","true").width("auto"),e=g[m.attr("id_number")].width,b.orientation!="horizontal"&&m.children("div").css({marginTop:0,marginLeft:0}),m.css({overflow:"hidden",width:0}).fadeIn(1).animate({width:e},b.animationTime,null,function(){a(this).css("overflow","visible")})}else{m=c.children("ul"),k=m.attr("vis");if(k=="false"||k===undefined)m.attr("vis","true").width("auto").height("auto"),e=m.width(),c.children("ul.autoHide").css({overflow:"hidden",width:0}),c.children("ul.autoHide").fadeIn(1).animate({width:e},b.animationTime,null,function(){a(this).css("overflow","visible")})}break;case"b-slide":m=c.children(".jsOverflowControl");if(m.length){if(m.attr("vis")=="false"||m.attr("vis")===undefined)m.attr("vis","true").width("auto"),e=g[m.attr("id_number")].width,f=g[m.attr("id_number")].height,b.orientation!="horizontal"&&m.children("div").css({marginTop:0,marginLeft:0}),m.css({overflow:"hidden",width:0,height:0}).fadeIn(1).animate({width:e,height:f},b.animationTime,null,function(){a(this).css("overflow","visible")})}else{m=c.children("ul"),k=m.attr("vis");if(k=="false"||k===undefined)m.attr("vis","true").width("auto").height("auto"),e=m.width(),f=m.height(),c.children("ul.autoHide").css({overflow:"hidden",width:0,height:0}).fadeIn(1).animate({width:e,height:f},b.animationTime,null,function(){a(this).css("overflow","visible")})}break;default:c.children("ul,div").fadeIn(1)}},l=function(c){var d=c.children("ul,div");d.stop(!0,!0).each(function(){a(this).children("li, ul").each(function(){var b=a(this);b.is("ul")?b.children("li").each(function(){l(a(this))}):l(b)})});switch(b.effect){case"fade":d.fadeOut(b.animationTime);break;case"v-slide":d.slideUp(b.animationTime);break;case"h-slide":c.children(c.children("div").length?"div":"ul").animate({width:0},b.animationTime,"swing",function(){a(this).attr("vis","false").fadeOut(0)});break;case"b-slide":c.children(c.children("div").length?"div":"ul").animate({width:0,height:0},b.animationTime,"swing",function(){a(this).css("overflow","hidden").attr("vis","false").fadeOut(0)});break;case"none":d.fadeOut(1)}};c.find(".auto").removeClass("auto").addClass("autoHide"),c.find("ul").data("flip-direction",1),b.type=="multipleColumn"&&(b.effect=="h-slide"||b.effect=="b-slide")&&c.find("li > div").each(function(){var b=a(this),c=b.width(),d=b.height(),e=g.length;b.attr("id_number",e).css("overflow","hidden").width(c).height(d).wrapInner('<div style="position: absolute; display: block; width: '+c+"px; height: "+d+'px;" />').addClass("jsOverflowControl"),g[e]={width:c,height:d}}),e&&b.type!="multipleColumn"&&(a("#imMnMn ul ul ul").css({marginTop:-b.submenuHeight,marginLeft:0}),a("#imMnMn ul ul").css("margin-left",0)),e&&b.orientation=="horizontal"&&(a("#imMnMn > ul > li > ul, #imMnMn > ul > li > div").css("margin-top",0),b.type=="multipleColumn"&&a("#imMnMn > ul > li > div").css("margin-left",0));var m=a(".imMnMnTxt img").css("position"),n=null,o=function(){a("#imFooPad").length>0?n=a("#imFooPad").height():n=a("#imContent").height()},p=function(){var c=a("#imFooPad"),d=a("#imMnMn"),e=d.css("padding-top").replace(/px/g,"")*1,f=a("#imContent");b.verticalScroll&&(e+=d.children("ul").css("margin-top").replace(/px/g,"")*1,h.triggerHandler("scroll"),h.one("scroll",p));if(c.length>0)c.height(Math.max(n,e+d.children("ul").outerHeight()-(f.height()-c.height())));else{var g=Math.max(n,e+d.children("ul").outerHeight()),i=a("#imBtMn");b.verticalScroll&&i.length>0&&c.length===0&&i.css("margin-top",Math.max(0,g-n+15)),f.height(g)}};a("#imContent").change(function(){a("#imContent").height("auto"),o(),p()});if(b.type=="accordion"){var q=a("#imMnMn > ul > li > ul");q.each(function(){var c=a(this);b.showCurrent&&c.find(".imMnMnCurrent").length?c.slideDown(0):c.slideUp(0)}),q.siblings("span.imMnMnFirstBg").click(function(){var c=a(this),d=c.siblings("ul");c.parent().siblings("li").each(function(){a(this).children("ul").slideUp(b.animationTime)}),d.slideToggle(b.animationTime,p).children("ul").hide(0)}),o(),p(),c=q}c.find("li").hover(function(){var b=a(this),c=b.attr("id");i[c]!==null&&i[c]!==undefined&&clearTimeout(i[c]),b.find("div ul ul").hide(),i[c]=setTimeout(function(){k(b)},300)}),c.find("li").mouseleave(function(){var c=a(this),d=c.attr("id");i[d]!==null&&i[d]!==undefined&&clearTimeout(i[d]),i[d]=setTimeout(function(){l(c)},b.timeout)});if(b.verticalScroll){d=a(b.target);var r=d.css("margin-top").replace(/px/gi,"")*1,s=d.css("position"),t,u=d.offset().top,v=d.position().top,w,x=null,y=d.css("top")!="auto"?d.css("top").replace(/px/gi,"")*1:"auto",z=0,A;(function B(){t=a(document).height(),A=d.parent().offset().left,w=(b.orientation=="horizontal"?d:a("#imMnMnGraphics")).position().left,u>=h.scrollTop()&&(z=d.css("left")!="auto"?d.css("left").replace(/px/gi,"")*1:"auto"),a("#imContent").one("change",B)})(),h.scroll(function(){var b=a("#imFooter"),c=b.length?b.height():0,e=b.offset().top;if(e<=u+d.outerHeight(!0)+5)return;x&&window.cancelAnimFrame(x),x=window.requestAnimFrame(function(){var a=h.scrollTop();u<a?d.css({position:"fixed","margin-top":0,left:-h.scrollLeft()+w+A,bottom:"auto",top:Math.min(0,-d.outerHeight(!0)-a+e)}):d.css({position:s,"margin-top":r,left:z,top:y})})}).resize(function(){A=d.parent().offset().left,h.triggerHandler("scroll")})}a("#imContent").trigger("change")}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{panAndZoom:function(c){var d=a.extend({target:"",url:"",targetWidth:null,targetHeight:null,autoMove:!0,animate:!1,enableZoom:!1,showZoomControl:!1,showNavigator:!1,protect:!1,freedom:"both",loadingImage:"res/imLoad.gif",handImage:"res/move.png",lensImage:"res/imsearch.png",helperBg:"black",navigatorSize:30},c),e=null,f=null,g=null,h=null,i=null,j="touchstart"in document||"ontouchstart"in document,k=null,l=null,m=0,n=0,o=0,p=0,q="#eee",r="#ccc",s="#aaa",t=null,u=(Math.random()-.5<0?-1:1)*(100+Math.round(Math.random()*20-10)),v=(Math.random()-.5<0?-1:1)*(100+Math.round(Math.random()*20-10)),w=!1,x=function(){var c={x:0,y:0},e={x:0,y:0},h=d.targetWidth/k*l,j=d.targetWidth,p=null;h>d.targetHeight&&(j=d.targetHeight/l*k,h=d.targetHeight),j=j*d.navigatorSize/100,h=h*d.navigatorSize/100;var r=new b.mediaObject({url:d.url,effect:"none",width:j,height:h,contentWidth:j,contentHeight:h,touchDevice:!1,deferredCaching:!0,protect:d.protect});r.Cache({load:function(){var b=null;g=a("<div />").css({position:"absolute",top:-j-10,left:10,background:q,border:"1px solid "+q}).width(j).height(h).mousedown(function(a){w=!0,c={x:a.pageX,y:a.pageY},e={x:s
.css("border-left-width").replace(/px/g,"")*-1,y:s.css("border-top-width").replace(/px/g,"")*-1}}).mouseup(function(a){w=!1}).mouseleave(function(a){w=!1}).mousemove(function(a){w&&(a.preventDefault(),m=(e.x+(c.x-a.pageX))/j*k,n=(e.y+(c.y-a.pageY))/h*l,m=Math.min(Math.max(m,-k*o+d.targetWidth),0),n=Math.min(Math.max(n,-l*o+d.targetHeight),0),f.css({top:n,left:m}).triggerHandler("image.change",[o,m,n]))}).bind("dragstart",function(a){return a.preventDefault(),!1});var s=a("<div />").css({position:"absolute",top:0,bottom:0,left:0,right:0,border:"0px solid "+q,background:"transparent"}).fadeTo(0,.75);f.bind("image.change",function(a,b,c,e){p!==null&&window.cancelAnimFrame(p),p=window.requestAnimFrame(function(){s.css({"border-top-width":-e/b/l*h,"border-bottom-width":h- -e/b/l*h-d.targetHeight*h/(l*b),"border-left-width":-c/b/k*j,"border-right-width":j- -c/b/k*j-d.targetWidth*j/(k*b)})})}),i.append(g.append(r.DOMObject()).append(s)).mouseleave(function(){b=setTimeout(function(){g.stop(!1,!1).animate({top:-g.height()-20})},1e3)}).mouseenter(function(){b!==null&&(clearTimeout(b),b=null),g.stop(!1,!1).animate({top:10})}),g.bind("mousewheel DOMMouseScroll",A)}})},y=function(){var b=20,c=10,e=Math.min(i.height(),170)-2*b-2*c,g=!1,j=function(a){return g=!1,k(a)},k=function(a){return a.preventDefault(),!1};h=a("<div />").css({position:"absolute",right:10,top:c}).mousemove(function(a){if(g){v.css("top",l(a.pageY-u.offset().top));var c=1-(a.pageY-u.offset().top)/(e-b/2);z(c*(1-p)+p,null,null,!1)}}).mouseleave(j).mouseup(j).bind("selectstart mousedown",k);var l=function(a){return Math.min(Math.max(a-b/2,0),e-b)},m={position:"absolute",color:s,border:"1px solid "+r,background:q,cursor:"pointer"},n=a("<div />").width(b).height(b).css(m).css({top:0,"border-radius":"5px 5px 0 0"}).text("+").click(function(a){return a.preventDefault(),z(o+.1),!1}).dblclick(k).bind("selectstart mousedown",k),t=a("<div />").width(b).height(b).css(m).css({bottom:0,"border-radius":"0 0 5px 5px"}).text("-").click(function(a){return a.preventDefault(),z(o-.1),!1}).dblclick(k).bind("selectstart mousedown",k),u=a("<div />").css({margin:b+"px 9px",background:q,border:"1px solid "+r}).width(2).height(Math.min(e,d.targetHeight-20)),v=a("<div />").css({"border-radius":5,position:"absolute",margin:b+5+"px 0",bottom:0,left:5,border:"1px solid "+s,background:q,cursor:"pointer"}).width(10).height(10).mousedown(function(a){g=!0}).mouseup(function(a){g=!1}).bind("dragstart",k).bind("selectstart mousedown",k);i.append(h.append(u.append(v)).append(n).append(t)),f.bind("image.change",function(a,b){if(g)return;b=(b-p)/(1-p),v.css("top",l((1-b)*e))})},z=function(a,b,c,e){var g=o,h=null;a=Math.max(Math.min(a,1),p);if(f===null||a==o)return;if(e===undefined||e===null)e=!0;f.stop(!1,!1);if(b===null||b===undefined)b=(m-d.targetWidth/2)*a/o+d.targetWidth/2;if(c===null||c===undefined)c=(n-d.targetHeight/2)*a/o+d.targetHeight/2;m=b=Math.min(Math.max(b,-k*a+d.targetWidth),0),n=c=Math.min(Math.max(c,-l*a+d.targetHeight),0);var i={width:k*a,height:l*a,left:b,top:c};e?f.animate(i,{step:function(a,d){switch(d.prop){case"width":o=a/k;break;case"left":m=b=a;break;case"top":n=c=a}f.triggerHandler("image.change",[o,b,c])},complete:function(){o=a,f.triggerHandler("image.change",[o,b,c])}}):(o=a,h!==null&&window.cancelAnimFrame(h),h=window.requestAnimFrame(function(){f.css(i).width(k*a).height(l*a).triggerHandler("image.change",[o,b,c])}))},A=function(a){if(d.enableZoom){a.preventDefault();var b=(a.originalEvent.detail?a.originalEvent.detail:a.originalEvent.wheelDelta)>0?-0.2:.2;b*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1,z(o+b)}};i=a(d.target);if(i.length===0)return!1;i.css({background:'url("'+d.loadingImage+'") no-repeat center center',position:"relative",overflow:"hidden"}).width(d.targetWidth).height(d.targetHeight),e=new b.mediaObject({url:d.url,effect:"fade",contentWidth:d.targetWidth,contentHeight:d.targetHeight,touchDevice:j,protect:d.protect,load:function(b){var c={x:0,y:0},g={x:0,y:0},h=null;f=b.DOMObject(),f.css("display","none"),l=f.attr("data-height"),k=f.attr("data-width"),i.css("background-image","none").prepend(f),p=d.targetWidth/k,p*l>d.targetHeight&&(p=d.targetHeight/l),d.enableZoom?(z(Math.min(d.targetWidth,d.targetHeight)/Math.max(l,k),(-k+d.targetWidth)/2,(-l+d.targetHeight)/2,!1),d.showZoomControl&&y()):z(1,(-k+d.targetWidth)/2,(-l+d.targetHeight)/2,!1);if(!j)d.showNavigator&&x(),f.mousedown(function(a){a.which==1&&!d.autoMove&&(f.stop(!1,!1).css("cursor","move"),w=!0,c={x:a.pageX,y:a.pageY},g={x:f.position().left,y:f.position().top})}).mouseup(function(){d.autoMove||(w=!1,f.css("cursor","auto"))}).mouseleave(function(){w=!1,f.css("cursor","auto"),h!==null&&window.cancelAnimFrame(h)}).mousemove(function(a){a.preventDefault();if(!d.autoMove)w&&(m=Math.min(Math.max(g.x-(c.x-a.pageX),-k*o+d.targetWidth),0),n=Math.min(Math.max(g.y-(c.y-a.pageY),-l*o+d.targetHeight),0),f.css({top:n,left:m}).triggerHandler("image.change",[o,m,n]));else{w=!0;var b=a.pageX-i.offset().left-d.targetWidth/2,e=a.pageY-i.offset().top-d.targetHeight/2,j=Math.abs(b/e),p="";j<1.5&&j>.5?(p+=e<0?"n":"s",p+=b<0?"w":"e"):j>1?p+=b<0?"w":"e":j<1&&(p+=e<0?"n":"s"),f.css("cursor",p+"-resize"),h!==null&&window.cancelAnimFrame(h),function q(a){var c=b*o*a/400,g=e*o*a/400;w&&(n=Math.min(Math.max(n-g,-l*o+d.targetHeight),0),m=Math.min(Math.max(m-c,-k*o+d.targetWidth),0),f.css({top:n,left:m}).triggerHandler("image.change",[o,m,n]));var i=new Date;h=window.requestAnimFrame(function(){q(new Date-i)})}(0)}}),d.enableZoom&&f.dblclick(function(a){o!=1?z(1):z(p)}),f.bind("mousewheel DOMMouseScroll",A).bind("dragstart",function(){return!1}),i.append(t=a("<div />").css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:d.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+(d.enableZoom?d.lensImage:d.handImage)+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0}))).mouseenter(function(){t.stop(!1,!1).animate({right:-30,bottom:-30})}).mouseleave(function(){t.stop(!1,!1).animate({right:0,bottom:0})});else{var q=o,r=null,s=null,B=null,C=null;b.BeforeMove(function(a){a.preventDefault(),q=o,f.stop(!1,!1),c={x:a.touches[0].pageX,y:a.touches[0].pageY},g={x:m,y:n},r=s=null,w=!0}).Move(function(a){if(!w)return;a.preventDefault(),B=r,C=s,n=s=g.y-(c.y-a.touches[0].pageY),m=r=g.x-(c.x-a.touches[0].pageX);if(s<-l*o+d.targetHeight||s>0)n=s=g.y-(c.y-a.touches[0].pageY)/2;if(r<-k*o+d.targetWidth||r>0)m=g.x-(c.x-a.touches[0].pageX)/2;f.css("top",s),f.css("left",r),c={x:a.touches[0].pageX,y:a.touches[0].pageY},g={x:m,y:n}}).AfterMove(function(a){a.preventDefault(),r!==null&&s!==null&&(B!==null&&C!==null&&(r+=(r-B)*6,s+=(s-C)*6),f.stop(!1,!1).animate({top:Math.min(Math.max(s,-l*o+d.targetHeight),0),left:Math.min(Math.max(r,-k*o+d.targetWidth),0)},{duration:1e3,easing:"iOsSwing",step:function(a,b){b.prop=="top"&&(n=a),b.prop=="left"&&(m=a)}})),w=!1}),d.enableZoom&&e.Pinch(function(a){w=!1,a.preventDefault(),z(a.scale*q,null,null,!1)})}e.TriggerAnimationInStart(),f.fadeIn(),d.animate&&function D(a){if(!w&&o>p+.05){var b=a/1e3*u,c=a/1e3*v;m+=b*o,n+=c*o;if(n<-l*o+d.targetHeight||n>0)v*=-1,n=Math.min(Math.max(n,-l*o+d.targetHeight),0);if(m<-k*o+d.targetWidth||m>0)u*=-1,m=Math.min(Math.max(m,-k*o+d.targetWidth),0);f.css({top:n,left:m}).triggerHandler("image.change",[o,m,n])}var e=new Date;window.requestAnimFrame(function(){D(new Date-e)})}(0)}})}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imRollover:function(b){b=a.extend({id:null,movement:"ALTERNATE",direction:"UP",effect:"LINEAR",autostart:!1},b);var c=a(b.id),d,e=null,f=b.time,g=null,h={top:c.css("padding-top").replace(/px/,"")*1,right:c.css("padding-right").replace(/px/,"")*1,bottom:c.css("padding-bottom").replace(/px/,"")*1,left:c.css("padding-left").replace(/px/,"")*1};switch(b.effect){case"SWING":d="swing";break;case"BOUNCE":d="imBounce";break;default:d="linear"}(c.attr("id")===undefined||c.attr("id")===null)&&c.attr("id","rollover_"+Math.round(Math.random()*1e3));var i=function(f){f=a.extend({tick:!1,reset:!0},f);var h,j;f.reset&&n();switch(b.movement){case"PAGINATE":switch(b.direction){case"UP":j=g.css("top").replace("px",""),j=isNaN(parseInt(j,10))?0:parseInt(j,10),j>b.height-g.outerHeight()?g.animate({top:j-b.height},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d}):g.animate({top:0},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d});break;case"BOTTOM":j=g.css("top").replace("px",""),j=isNaN(parseInt(j,10))?0:parseInt(j,10),j<=0?g.animate({top:j+b.height},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d}):g.animate({top:b.height-g.height()},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d});break;case"LEFT":h=g.css("left").replace("px",""),h=isNaN(parseInt(h,10))?0:parseInt(h,10),h>-g.width()+c.width()?g.animate({left:h-c.width()},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d}):g.animate({left:0},{duration:"medium",complete:function(){e=setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d});break;case"RIGHT":h=g.css("left").replace("px",""),h=isNaN(parseInt(h,10))?0:parseInt(h,10),h<0?g.animate({left:h+c.width()},{duration:"medium",complete:function(){setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d}):g.animate({left:-g.width()+c.width()},{duration:"medium",complete:function(){setTimeout(function(){i({reset:!1})},b.time*1e3)},easing:d})}break;case"CONTINUE":switch(b.direction){case"UP":g.animate({top:-g.outerHeight()},{duration:b.time*1e3,complete:function(){g.css({top:b.outerHeight}),i()},easing:d});break;case"BOTTOM":g.animate({top:b.height},{duration:b.time*1e3,complete:function(){g.css({top:-g.height()}),i()},easing:d});break;case"LEFT":g.animate({left:-g.width()},{duration:b.time*1e3,complete:function(){g.css({left:c.width()}),i()},easing:d});break;case"RIGHT":g.animate({left:c.width()},{duration:b.time*1e3,complete:function(){g.css({left:-g.width()}),i()},easing:d})}break;case"SINGLE":switch(b.direction){case"UP":g.animate({top:0},{duration:b.time*1e3,easing:d});break;case"BOTTOM":g.animate({top:-g.height()+b.height},{duration:b.time*1e3,easing:d});break;case"RIGHT":m=l(g.html()),g.animate({left:-m+c.width()},{duration:b.time*1e3,easing:d});break;case"LEFT":g.animate({left:0},{duration:b.time*1e3,easing:d})}break;default:switch(b.direction){case"UP":g.animate({top:0},{duration:b.time*1e3,complete:function(){b.direction="BOTTOM",i()},easing:d});break;case"BOTTOM":g.animate({top:-g.height()+b.height},{duration:b.time*1e3,complete:function(){b.direction="UP",i()},easing:d});break;case"RIGHT":m=l(g.html()),g.animate({left:-m+c.outerWidth()},{duration:b.time*1e3,complete:function(){b.direction="LEFT",i()},easing:d});break;case"LEFT":g.animate({left:0},{duration:b.time*1e3,complete:function(){b.direction="RIGHT",i()},easing:d})}}},j=function(){b.movement!="PAGINATE"?i():e=setTimeout(function(){i()},b.time*1e3)},k=function(){g.stop()},l=function(d){var e=a("<div><div>"+d+"</div></div>").css({position:"absolute",top:-1e3}).width(5e7),f=e.children().css({width:"auto","white-space":b.direction=="UP"||b.direction=="BOTTOM"?"normal":"nowrap",display:"inline-block","padding-top":h.top,"padding-bottom":h.bottom,"padding-right":h.right,"padding-left":h.left}),g=0;return c.append(e),g=f.outerWidth(!0)+30,e.remove(),g};c.height(b.height).css({position:"relative",overflow:"hidden"}).wrapInner('<div id="'+c.attr("id")+'_runner">'),g=a("#"+c.attr("id")+"_runner").css({position:"absolute","padding-top":h.top,"padding-bottom":h.bottom,"padding-right":h.right,"padding-left":h.left,"white-space":b.direction=="UP"||b.direction=="BOTTOM"?"normal":"nowrap"}).width(c.width()-h.left-h.right),b.mouselock&&(b.movement!="PAGINATE"?c.mouseenter(function(){g.pauseAnim()}).mouseleave(function(){g.resAnim()}):c.mouseover(function(){e!==null&&clearTimeout(e)}).mouseleave(function(){e=setTimeout(function(){i(!1)},b.time*1e3)}));var m=0,n=function(){switch(b.movement){case"CONTINUE":switch(b.direction){case"UP":g.css({left:0,top:b.height});break;case"BOTTOM":g.css({left:0,top:-g.height()});break;case"LEFT":g.css("left",c.width()).width(l(g.html()));break;case"RIGHT":g.css("left",-g.width()).width(l(g.html()))}break;case"PAGINATE":switch(b.direction){case"BOTTOM":g.css({left:0,top:-g.height()+b.height});break;case"UP":g.css({left:0,top:0});break;case"RIGHT":m=l(g.html()),g.css("left",-m+c.width()).width(m);break;case"LEFT":g.css("left",0).width(l(g.html()))}break;default:switch(b.direction){case"UP":g.css({left:0,top:-g.height()+b.height});break;case"BOTTOM":g.css({left:0,top:0});break;case"LEFT":m=l(g.html()),g.css("left",-m+c.width()).width(m);break;case"RIGHT":g.css("left",0).width(l(g.html()))}}};b.autostart&&j(),c.data("imRollover",{start:function(){j()},stop:function(){k()}})}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imSearch:{current:null,Load:function(){var c=a("#imSearchWebPages, #imSearchBlog, #imSearchProducts, #imSearchImages, #imSearchVideos");c.fadeOut(0),b.imSearch.Show(c.first()),c.length<2&&(a("#imSearchSideBar").hide(0),a("#imSearchContent").css({width:"100%"}))},Show:function(c){return c!=b.imSearch.current&&a("#imSearchWebPages, #imSearchBlog, #imSearchProducts, #imSearchImages, #imSearchVideos").fadeOut(1,function(){a(c).fadeIn(0),b.imSearch.current=c,a("#imContent").trigger("change")}),!1}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imShowBox:function(c,d,e){c=a.extend(b.settings.imShowBox,c),d=d||0,e=a(e);if(!e.width()||!e.height()||e.children("img").length){var f=e.children("img");if(f.length)e=f;else{var g=!1;e.children().each(function(){var b=a(this);!g&&b.width()!==0&&b.height()!==0&&(e=b,g=!0)})}}var h="touchstart"in document||"ontouchstart"in document,i=!1,j=[],k=null,l=null,m=null,n=null,o=null,p=null,q=null,r=c.effect!="none"?250:2,s=a(window),t=a("body"),u=a("head"),v=null,w=e.css("visibility"),x=e.width(),y=e.height(),z=!1,A=null,B=null,C=!1,D=null,E=null,F=null,G=null,H=null,I=!1,J=function(d,e){if(c.media[d]===undefined||c.media[d]===null)return;var f=j.length,g=new b.mediaObject(a.extend(c.media[d],{touchDevice:h,android:i,allowFrameTransparency:c.allowFrameTransparency,load:function(b){j[f]=b,a.isFunction(e)&&e(d,b);var c=null;h&&j[f].AfterMove(function(a,b){!B||(B.attr("data-hide")=="false"?B.attr("data-hide","true"):B.stop(!1,!1).fadeOut(),!D||(clearTimeout(D),D=null),D=setTimeout(function(){B.stop(!1,!1).fadeIn()},7e3)),a.preventDefault(),(Math.abs(b.offsetX)>Math.abs(b.offsetY)?b.offsetX:b.offsetY)<0?P():Q()}).Gesture(function(a){a.preventDefault(),a.scale<.9&&T()}).AfterPinch(function(a){a.preventDefault(),a.scale<.9&&T()}),J(d+1,e)},error:function(a,b){g=null,a=null,J(d+1)}}))},K=function(){n=a(document.createElement("div")),t.append(n),n.css({position:"fixed","background-color":c.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":b.settings.zIndex.showBox}).fadeTo(r,c.opacity).click(T),c.radialBg&&(/Firefox/i.test(navigator.userAgent)?n.css({"background-image":"-moz-radial-gradient(center 45deg, ellipse farthest-corner, "+b.utils.hex2rgb(c.background,80,80,80)+" 0%, "+b.utils.hex2rgb(c.background,40,40,40)+" 40%, "+b.utils.hex2rgb(c.background)+" 100%)"}):/Chrome/i.test(navigator.userAgent)&&n.css({background:"-webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from("+b.utils.hex2rgb(c.background,80,80,80)+"), to("+b.utils.hex2rgb(c.background)+"))"}))},L=function(){k.css("box-shadow",c.shadow)},M=function(){k.css("box-shadow","")},N=function(a){var b=j[a].Width(),d=j[a].Height(),e,f=j[a].GetDescription(),g=null;f!==""&&(g=l.clone(),g.css({position:"absolute",top:-1e3,bottom:"auto"}).width(b).html(f),t.append(g),d+=g.outerHeight()),b+c.borderWidth.right+c.borderWidth.left+2*c.innerBorder>s.width()-50&&(d=d*(s.width()-50-c.borderWidth.top-c.borderWidth.bottom-2*c.innerBorder)/b,b=s.width()-50-c.borderWidth.right-c.borderWidth.left-2*c.innerBorder,g!==null&&(g.width(b),d+=g.outerHeight()));if(d+c.borderWidth.top+c.borderWidth.bottom+2*c.innerBorder>s.height()-50){var h=l.outerHeight();b=b*(s.height()-50-c.borderWidth.right-c.borderWidth.left-2*c.innerBorder)/d,d=s.height()-50-c.borderWidth.top-c.borderWidth.bottom-2*c.innerBorder,e=d,g!==null&&(e-=g.height(),g.width(Math.round(c.media[a].width*e/c.media[a].height)),g.height()<=h&&(b=Math.round(c.media[a].width*e/c.media[a].height)),g.width(""))}var i=0;return g!==null&&(i=g.outerHeight(),g.remove()),{width:b,height:d,dHeight:i}},O=function(b,d,e){var f=N(b),g=v!==null?N(v):{width:0,height:0};d=d?d:!1,e=e?e:!1,z=!1,q.css("display","none"),c.shadow!==""&&M();var h=function(b){v!==null?j[v].AnimateOut(m,function(c){c.DOMObject().detach(),a.isFunction(b)&&b()},d):a.isFunction(b)&&b()},i=function(){m.append(j[b].DOMObject()).width(f.width).height(f.height-f.dHeight),l.stop(!1,!1).fadeOut(r/2,function(){j[b].GetDescription()!==""&&l.html(j[b].GetDescription()).fadeIn(r)}),j[b].ContentWidth(f.width),j[b].ContentHeight(f.height-f.dHeight),j[b].AnimateIn(m,function(){!!B&&!C&&(C=!0,B.fadeIn())},d),I&&W()},n=function(b){X(),k.stop(!1,!1).animate({width:f.width,height:f.height,left:(s.width()-f.width)/2,top:(s.height()-f.height)/2},{duration:r,complete:function(){z=!0,k.css("overflow","visible").trigger("showboxReady"),q.css("display","block"),c.shadow!==""&&L(),a.isFunction(b)&&b()}})};X(!0),e||g.width==f.width&&g.height==f.height?(h(),v=b,n(),i()):h(function(){v=b,n(i)})},P=function(){V(),v+1<j.length?O(v+1):O(0)},Q=function(){V(),v-1<0?O(j.length-1,!0):O(v-1,!0)},R=function(a){O(v)},S=function(a){switch(a.keyCode){case 37:case 40:a.preventDefault(),Q();break;case 39:case 38:a.preventDefault(),P();break;case 27:a.preventDefault(),T()}},T=function(){var a=function(){!E||(E.attr("content",H+", maximum-scale=4, user-scalable=yes"),s.scrollLeft(F),s.scrollTop(G))};n.unbind("click"),t.unbind("keydown",S),s.unbind("resize",O),q.css("display","none"),n.stop(!1,!1).fadeOut(r,function(){n.remove()}),j[v].Stop(),!A||clearTimeout(A),(c.effect=="zoom"||c.effect=="hide")&&v!=d&&(e.css("visibility",w),c.effect="fade");switch(c.effect){case"fade":k.stop(!1,!1).fadeOut(r,function(){k.remove(),a()});break;case"move":k.stop(!1,!1).animate({top:-k.outerHeight()},{duration:r,complete:function(){k.remove(),a()}});break;case"zoom":case"hide":var b=e.offset();b.left-=s.scrollLeft(),b.top-=s.scrollTop();var f=j[v].DOMObject();l.fadeOut(r);var g=e.find("img");e.is("img")&&(g=e.clone().css({width:"100%",height:"100%",visibility:"visible"}).fadeIn(0),f.before(g)),f.css({width:"100%",height:"100%"}).fadeOut(r),m.animate({width:x,height:y},{duration:r}),c.shadow!==""&&M(),k.animate({top:b.top,left:b.left,width:x,height:y,padding:0},{duration:r,complete:function(){c.effect=="hide"&&e.css("visibility",w),k.remove(),a()}});break;default:k.remove(),n.stop().remove(),a()}},U=function(){A=setTimeout(function(){P(),A=null,U()},c.autoplayTime)},V=function(){A!==null&&clearTimeout(A)},W=function(){if(!c.buttons||j.length<2||h)return;var a;if(c.buttonRight.url===""&&c.buttonLeft.url===""){var b="0 10px 10px 0",d="10px 0 0 10px",e={"-moz-border-radius":b,"-webkit-border-radius":b,"border-radius":b},f={"-moz-border-radius":d,"-webkit-border-radius":d,"border-radius":d},g=j[v].Overlay()&&k.width()>o.outerWidth()*2;a={top:(m.height()-p.height())/2,"background-color":c.boxColor,padding:"15px 20px",position:"absolute",cursor:"pointer","font-weight":"bold","font-size":"15pt",color:c.textColor},p.stop(!0,!0).css(a).css(g?e:f).css({left:g?0:-p.outerWidth()}).fadeIn(r),o.stop(!0,!0).css(a).css(g?f:e).css({right:g?0:-o.outerWidth()}).fadeIn(r)}else o.attr("data-loaded")=="true"&&p.attr("data-loaded")=="true"&&(a={cursor:"pointer",position:"absolute"},p.stop(!0,!0).css(a).css({top:(m.height()-p.height())/2+c.buttonLeft.position.y,left:c.buttonLeft.position.x}).fadeIn(r),o.stop(!0,!0).css(a).css({top:(m.height()-p.height())/2+c.buttonRight.position.y,right:c.buttonRight.position.x}).fadeIn(r))},X=function(a){a=a||!1,p.stop(!1,!1).fadeOut(a?0:r),o.stop(!1,!1).fadeOut(a?0:r)};k=a("<div />"),m=a("<div />"),l=a("<div />"),q=a("<img />"),c.buttonRight.url===""&&c.buttonLeft.url===""?(o=a("<div />").html(">"),p=a("<div />").html("<")):(o=a("<img />").one("load",function(){a(this).attr("data-loaded","true")}).attr("src",c.buttonRight.url),p=a("<img />").one("load",function(){a(this).attr("data-loaded","true")}).attr("src",c.buttonLeft.url)),o.css("display","none").click(P).bind("selectstart mousedown",function(){return!1}),p.css("display","none").click(Q).bind("selectstart mousedown",function(){return!1}),m.css({position:"relative",height:"100%",overflow:"hidden"}),q.css({position:"absolute",right:-11-c.borderWidth.right,top:-11-c.borderWidth.top,cursor:"pointer",display:"none"}).attr("src",c.closeImg).width(22).height(22).click(T),l.css({"font-family":c.fontFamily,"font-size":c.fontSize,color:c.textColor,padding:5,"text-align":c.textAlignment,"font-style":c.fontStyle,"font-weight":c.fontWeight,position:"absolute",right:0,left:0,bottom:7}),k.append(q).append(m).append(l).append(p).append(o).css({position:"fixed","background-image":'url("'+c.loadingImg+'")',"background-position":"center center","background-repeat":"no-repeat","border-radius":c.borderRadius,"z-index":b.settings.zIndex.showBox+1,overflow:"visible"}),k.mousemove(function(){if(I)return;I=!0;if(j.length<2)return;z&&W(),k.bind("showboxReady",W)}).mouseleave(function(){I=!1,X(),k.unbind("showboxReady")}),h&&c.media.length>1&&!B&&(B=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0,display:"none"}).width(30).height(30).append(a("<div />").css({background:c.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+c.swipeImg+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10})).attr("data-hide","true"),m.after(B),G=s.scrollTop(),F=s.scrollLeft(),E=u.find('meta[name="viewport"]'),E.length||(E=a('<meta name="viewport" content="initial-scale=1" />'),u.append(E)),H=E.attr("content"),E.attr("content",H+", user-scalable=no, maximum-scale=1")),c.autoplay&&k.one("showboxReady",U);switch(c.effect){case"none":case"fade":case"move":K(),k.css({width:32,height:32,left:(s.width()-32)/2,"background-color":c.boxColor,top:c.effect!="move"?(s.height()-32)/2:-50,padding:c.innerBorder,"border-top-width":c.borderWidth.top,"border-right-width":c.borderWidth.right,"border-bottom-width":c.borderWidth.bottom,"border-left-width":c.borderWidth.left,"border-style":"solid","border-color":c.borderColor,display:c.effect!="move"?"none":"block"}),t.append(k);var Y=function(){J(0,function(a,b){a===d&&(k.css("background-image","url()"),O(d,!1,!1))}),t.keydown(S),s.resize(R)};c.effect!="move"?k.fadeIn(r,Y):(k.animate({top:(s.height()-32)/2},{duration:r}),Y());break;case"zoom":case"hide":var Z=e.offset();Z.left-=s.scrollLeft(),Z.top-=s.scrollTop(),t.append(k),k.css({width:e.width(),height:e.height(),left:Z.left,top:Z.top,padding:0,"background-color":"transparent","border-top-width":0,"border-right-width":0,"border-bottom-width":0,"border-left-width":0,display:"none"}).fadeIn(r),J(0,function(a,b){if(a===d){v=a;var f=null;e.is("img")&&(f=e.clone().css({width:"100%",height:"100%"}),m.append(f)),c.effect=="hide"&&e.css("visibility","hidden"),k.css("background-image","url()");var g=N(a),h=b.DOMObject();h.css({top:0,left:0,width:"100%",height:"100%",display:"none"}),m.append(h),m.stop(!0,!0).animate({width:g.width,height:g.height-g.dHeight},{duration:r}),b.TriggerAnimationInStart(),K(),k.css({"background-color":c.boxColor,"border-top-width":0,"border-right-width":0,"border-bottom-width":0,"border-left-width":0,"border-style":"solid","border-color":c.borderColor}).stop(!0,!0).animate({padding:c.innerBorder,width:g.width,height:g.height,"border-top-width":c.borderWidth.top,"border-right-width":c.borderWidth.right,"border-bottom-width":c.borderWidth.bottom,"border-left-width":c.borderWidth.left,top:(s.height()-g.height)/2,left:(s.width()-g.width)/2},{duration:r,complete:function(){z=!0,k.trigger("showboxReady"),q.css("display","block"),h.width(g.width).height(g.height-g.dHeight),c.shadow!==""&&L(),b.TriggerAnimationInEnd()}}),f!==null&&f!==undefined&&f.fadeOut(function(){f.remove()}),h.fadeIn(r),l.empty().html(b.GetDescription()),t.keydown(S),s.resize(R)}})}return!1}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imSiteMap:{toggleLevel:function(b){return b=a(b),a(b).next(".imSiteMap").slideToggle("medium","swing",function(){a(b).next("ul:visible").length>0?a(b).children("img").attr("src","res/imfolder_open.gif"):a(b).children("img").attr("src","res/imfolder_closed.gif"),a("#imContent").triggerHandler("change")}),!1},foldAll:function(){return a("#imContent > ul").find(".imSiteMap").slideUp("medium","swing",function(){a(this).prev("span").children("img").attr("src","res/imfolder_closed.gif"),a("#imContent").triggerHandler("change")}),!1},unfoldAll:function(){return a("#imContent > ul").find(".imSiteMap").slideDown("medium","swing",function(){a(this).prev("span").children("img").attr("src","res/imfolder_open.gif"),a("#imContent").triggerHandler("change")}),!1},setup:function(){a("#imContent").triggerHandler("change"),a("img").last().one("load",function(){a("#imContent").triggerHandler("change")})}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imSlider:{Horizontal:function(c,d){var e=a(c+" .imGlContent"),f=a(c+" .imRunner"),g=a(c),h=0,i=!1,j="touchstart"in document||"ontouchstart"in document,k=null,l=a.extend({helperBg:"black",swipeImage:"res/move.png"},d);if(!j)a(c+" .imLeftArrow").not(".hiddenArrow").click(function(){h+e.innerWidth()>=20?f.innerWidth()%e.innerWidth()===0?h=-f.innerWidth()+e.innerWidth():h=-f.innerWidth()+f.innerWidth()%e.innerWidth():h+=e.innerWidth(),f.stop(!1,!1).animate({left:h})}),a(c+" .imRightArrow").not(".hiddenArrow").click(function(){-h<f.width()-e.innerWidth()?h-=e.innerWidth():h=0,f.stop(!1,!1).animate({left:h})});else{a(c+" .imLeftArrow, "+c+" .imRightArrow").css("visibility","hidden");var m=f.find("img").outerWidth(!0),n=null,o=new b.mediaObject({type:"dom",url:c+" .imRunner",width:f.width(),height:f.height(),effect:"none",touchDevice:!0,load:function(a){var b,c,d,g,j=f.width(),k=e.width();a.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(a){f.stop(!1,!1),d=a.touches[0].pageX,g=h,m=f.find("img").outerWidth(!0),b=null}).Move(function(a){a.preventDefault(),c=b,h=b=g-(d-a.touches[0].pageX);if(b<-j+k||b>0)h=g-(d-a.touches[0].pageX)/2;window.cancelAnimFrame(n),n=window.requestAnimFrame(function(){f.css("left",h)}),d=a.touches[0].pageX,g=h}).AfterMove(function(a){a.preventDefault();if(!!b){!c||(b+=(b-c)*6);var d=Math.abs(b%m);d>m/2?b-=m-d:b+=d,f.stop(!1,!1).animate({left:Math.min(Math.max(b,-j+k),0)},{duration:1e3,easing:"iOsSwing",step:function(a,b){b.prop=="left"&&(h=a)}})}i=!1})}});k=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:l.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+l.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),e.append(k)}},Vertical:function(c,d){var e=a(c+" .imGlContent"),f=a(c+" .imRunner").bind("dragstart",function(){return!1}),g=a(c),h=0,i=!1,j="touchstart"in document||"ontouchstart"in document,k=null,l=a.extend({helperBg:"black",swipeImage:"res/move.png"},d);if(!j)a(c+" .imTopArrow").click(function(){h+e.innerHeight()>=10?f.innerHeight()%e.innerHeight()===0?h=-f.innerHeight()+e.innerHeight():h=-f.innerHeight()+f.innerHeight()%e.innerHeight():h+=e.innerHeight(),f.animate({top:h})}),a(c+" .imBottomArrow").click(function(){-h<f.height()-e.innerHeight()?h-=e.innerHeight():h=0,f.animate({top:h})});else{a(c+" .imTopArrow, "+c+" .imBottomArrow").css("visibility","hidden");var m=0,n=null,o=new b.mediaObject({type:"dom",url:c+" .imRunner",width:f.width(),height:f.height(),effect:"none",touchDevice:!0,load:function(a){var b,c,d,g,j=f.height(),k=e.height();a.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(a){f.stop(!1,!1),d=a.touches[0].pageY,g=h,m=f.find("img").outerHeight(!0),b=null}).Move(function(a){a.preventDefault(),c=b,h=b=g-(d-a.touches[0].pageY);if(b<-j+k||b>0)h=g-(d-a.touches[0].pageY)/2;window.cancelAnimFrame(n),n=window.requestAnimFrame(function(){f.css("top",h)}),d=a.touches[0].pageY,g=h}).AfterMove(function(a){a.preventDefault();if(!!b){!c||(b+=(b-c)*6);var d=Math.abs(b%m);d>m/2?b-=m-d:b+=d,f.stop(!1,!1).animate({top:Math.min(Math.max(b,-j+k),0)},{duration:1e3,easing:"iOsSwing",step:function(a,b){b.prop=="top"&&(h=a)}})}i=!1})}});k=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:l.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+l.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),e.append(k)}},Page:function(c,d){var e=a(c),f=a(c+" .imSPage"),g=a(c+" .imRunner").bind("dragstart",function(){return!1}),h=0,i=10,j=!1,k="touchstart"in document||"ontouchstart"in document,l=f.width(),m=f.length*l,n=null,o=a.extend({helperBg:"black",swipeImage:"res/move.png"},d);g.width(m);if(!k){e.append('<div class="imSControls"><p class="imPPrev"><</p><p class="imPNext">></p></div>');var p=a(c+" .imSControls");p.css({"border-radius":i+"px "+i+"px 0 0",color:"black",bottom:-p.height()-50}),a(c+" .imPPrev").click(function(){h+l>0?h=-m+l:h+=l,g.animate({left:h})}),a(c+" .imPNext").click(function(){h-l<-m+l?h=0:h-=l,g.animate({left:h})}),e.mouseleave(function(){p.stop(!0,!0).animate({bottom:-p.height()-50})}).mouseover(function(){p.stop(!0,!0).animate({bottom:0})})}else{var q=new b.mediaObject({type:"dom",url:c+" .imRunner",width:m,height:g.height(),effect:"none",touchDevice:!0,load:function(a){var b,c,d,f,i=e.width();a.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(a){g.stop(!1,!1),d=a.touches[0].pageX,f=h,b=null}).Move(function(a){a.preventDefault(),c=b,h=b=f-(d-a.touches[0].pageX);if(b<-m+i||b>0)h=f-(d-a.touches[0].pageX)/2;g.css("left",h),d=a.touches[0].pageX,f=h}).AfterMove(function(a,d){a.preventDefault();if(!!b){var e=Math.abs(b%l);b+=e,Math.abs(d.offsetX)>30&&(b+=b-e-c<0?-l:l),g.stop(!1,!1).animate({left:Math.min(Math.max(b,-m+i),0)},{duration:1e3,easing:"iOsSwing",step:function(a,b){b.prop=="left"&&(h=a)}})}j=!1})}});n=a('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(a("<div />").css({background:o.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(a("<div />").css({background:"transparent url('"+o.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),e.append(n)}}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imSplashBox:function(c){var d="res/imClose.png",e=500,f=b.settings.imSplashBox,g,h,i,j,k=null,l=a(window);c=a.extend(!0,{effect:f.effect,position:f.position,shadow:f.shadow,margin:f.margin,width:f.width,height:f.height,cookie:f.cookie,link:f.link,image:f.image,sound:f.sound},c);if(c.cookie&&a.imCookie("im_splash")=="true"&&b.utils.isOnline())return!1;var m=function(){switch(c.position){case"center":h={left:(l.width()-i)/2,top:(l.height()-j)/2};break;case"bottom-right":h={left:l.width()-i-c.margin,top:l.height()-j-c.margin};break;case"bottom-left":h={left:c.margin,top:l.height()-j-c.margin};break;case"top-right":h={left:l.width()-i-c.margin,top:c.margin};break;case"top-left":h={left:c.margin,top:c.margin}}g.css(h)},n=function(){g.fadeOut(200,function(){g.remove(),k&&k.Stop()})};a("body").append('<div id="imSplashBox"><div style="text-align: right; "><div id="imClose"><img src="'+d+'" /></div></div><div id="splashContent" style="overflow: hidden;"><img /></div><div id="splashplayer"></div></div>'),c.sound!==""&&c.sound!==null&&c.sound!==undefined&&(k=b.mediaPlayer({url:c.sound,target:a("#imSplashBox #splashplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0})),g=a("#imSplashBox").fadeOut(0).css({zIndex:b.settings.zIndex.splashBox}),c.shadow&&g.css("box-shadow","0px 3px 7px #000"),a("#splashContent img").first().one("load",function(){setTimeout(function(
){g.fadeIn(0),i=g.outerWidth(),j=g.outerHeight(),g.fadeOut(0),m(),l.resize(m),a("#imClose img").click(n),a("#splashContent img").click(function(){a.isFunction(c.link)?c.link.call(g):location.href=c.link}),c.cookie&&a.imCookie("im_splash","true",{expires:0});switch(c.effect){case"fromtop":g.css({top:-a(window).height()-j}),g.fadeIn(0),g.animate(h,e);break;case"frombottom":g.css({top:a(window).height()+j}),g.fadeIn(0),g.animate(h,e);break;case"fromleft":g.css({left:-i}),g.fadeIn(0),g.animate(h,e);break;case"fromright":g.css({left:i+l.width()}),g.fadeIn(0),g.animate(h,e);break;case"fade":g.fadeIn(e);break;default:g.fadeIn(0)}},500)}),a("#splashContent img").attr("src",c.image)}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{textTabs:function(c){c=a.extend({target:null,width:0,height:0,effect:"horizontalSlide",tabPosition:"top",autoplay:!1,interval:5e3,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0},buttonNext:{url:"",x:0,y:0}}},c);if(c.target===null)return;var d=a(c.target),e=d.find(".tab").not(".tab-scroller"),f=d.find(".tab-scroller"),g=d.find(".text-tabs-outer"),h=d.find(".text-tabs-inner"),i=d.find("[id*="+d.attr("id")+"]"),j=d.find(".text-container"),k=j.position(),l=j.width(),m=[],n=0,o="touchstart"in document||"ontouchstart"in document,p=0,q=null,r=e.width()+1,s=e.height()+1,t=g.height(),u=g.width(),v=h.height(),w=h.width(),x=null,y=null,z=null,A=0,B=function(a,b,c){if(a==n)return;var d=m[n].DOMObject().find(".text-inner").data("imRollover");d&&d.stop(),m[n].AnimateOut(j,function(a){a.DOMObject().hide(0)},b),m[a].AnimateIn(j,function(a){var b=a.DOMObject().find(".text-inner").data("imRollover");b&&b.start()},b),e.removeClass("selected-text-tab").eq(a).addClass("selected-text-tab"),c&&E(a),n=a},C=function(a){a=a?!0:!1,B((n+1)%m.length,!1,a)},D=function(a){a=a?!0:!1,B(n-1<0?m.length-1:n-1,!0,a)},E=function(a,b){b=b===null||b===undefined?!1:!0;var d=c.tabPosition=="bottom"||c.tabPosition=="top",e=d?r:s,g=d?w:v,i=d?u:t,j=p+a*e<i/2?!0:!1,k;if(f.length!=2)return!1;if(!b&&p>=a*-e&&p<=(a+1)*-e+i)return!1;j?k=a*-e:k=a*-e+i-e,p=Math.min(0,Math.max(-g+i,k)),h.stop(!1,!1),d?h.animate({left:p}):h.animate({top:p})},F=function(){q!==null&&clearTimeout(q),q=setTimeout(function(){C(!0),F()},c.interval)},G=function(){q!==null&&clearTimeout(q)},H=function(a){a.TriggerAnimationInStart().TriggerAnimationInEnd().AfterMove(function(a,b){a.preventDefault(),(Math.abs(b.offsetX)>Math.abs(b.offsetY)?b.offsetX:b.offsetY)<0?C(!0):D(!0)}).DOMObject().css({position:"absolute",top:0,left:0})};for(var I=0;I<i.length;I++){m[m.length]=new b.mediaObject({url:"#"+i.eq(I).attr("id"),type:"dom",effect:c.effect,width:Math.max(i.eq(I).outerWidth(),c.width),height:c.height,contentWidth:j.width(),contentHeight:j.height(),touchDevice:o,load:H});if(I===0){var J=m[I].DOMObject().find(".text-inner").data("imRollover");J&&J.start()}}e.click(function(b){b.preventDefault();var c=a(this).attr("data-index")*1;return c!==null&&c!==!1&&(G(),B(c,c<n,!0)),!1}).css("left",0),c.slideshow.active&&c.slideshow.nextPrevMode!="none"&&(a("<img />").one("load",function(){var b=a(this);x=b.css({position:"absolute",top:-1e3}),j.after(x),x.css({top:(j.height()-x.height())/2+c.slideshow.buttonPrev.y,left:0,display:c.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer","z-index":1e3}).click(function(a){a.preventDefault(),G(),D()})}).attr("src",c.slideshow.buttonPrev.url),a("<img />").one("load",function(){var b=a(this);y=b.css({position:"absolute",top:-1e3}),j.after(y),b.css({top:(j.height()-y.height())/2+c.slideshow.buttonNext.y,right:0,display:c.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer","z-index":1e3}).click(function(a){a.preventDefault(),G(),C()})}).attr("src",c.slideshow.buttonNext.url),c.slideshow.nextPrevMode=="hover"&&j.parent().mouseenter(function(){z!==null&&(clearTimeout(z),z=null),y!==null&&x!==null&&y.add(x).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){y!==null&&x!==null&&(z!==null&&clearTimeout(z),z=setTimeout(function(){y.add(x).stop(!1,!1).fadeOut(250)},50))}));if(f.length==2){f.eq(1).click(function(){c.tabPosition=="top"||c.tabPosition=="bottom"?p>-w+u&&(A=Math.abs((p-u)%r),p=Math.max(-w+u,p-r+A),h.stop(!1,!1).animate({left:p+1})):p>-h.height()+g.height()&&(A=Math.abs((p-t)%s),p=Math.max(-v+t,p-s+A),h.stop(!1,!1).animate({top:p+1}))}),f.eq(0).click(function(){c.tabPosition=="top"||c.tabPosition=="bottom"?p<0&&(p%r!==0?A=r-Math.abs(p%r):A=0,p=Math.min(0,p+r-A),h.stop(!1,!1).animate({left:p-1})):p<0&&(p%s!==0?A=s-Math.abs(p%s):A=0,p=Math.min(0,p+s-A),h.stop(!1,!1).animate({top:p-1}))});if(o){var K=0,L=0,M=0,N=new b.mediaObject({type:"dom",url:h,effect:"none",touchDevice:!0,load:function(a){a.TriggerAnimationInStart()}});N.BeforeMove(function(){K=p}).Move(function(a,b){a.preventDefault(),c.tabPosition=="bottom"||c.tabPosition=="top"?(p=Math.max(-w+u,Math.min(0,K+b.offsetX)),h.stop(!1,!1).css("left",p),M=b.offsetX-L,L=b.offsetX):(p=Math.max(-v+t,Math.min(0,K+b.offsetY)),h.stop(!1,!1).css("top",p),M=b.offsetY-L,L=b.offsetY)}).AfterMove(function(a,b){a.preventDefault();if(c.tabPosition=="bottom"||c.tabPosition=="top"){if(Math.abs(L)>10){var d=p+M*10;M<0?d+=Math.abs((d-u)%r):d+=Math.abs(d%r),h.stop(!1,!1).animate({left:Math.max(-w+u,Math.min(0,d))},{step:function(a,b){p=a},duration:1e3,easing:"iOsSwing"})}}else if(Math.abs(L)>10){var e=p+M*10;M<0?e+=Math.abs((e-t)%s):e+=Math.abs(e%s),h.stop(!1,!1).animate({top:Math.max(-v+t,Math.min(0,e))},{step:function(a,b){p=a},duration:1e3,easing:"iOsSwing"})}})}}c.autoplay&&F()}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder"},Show:function(c,d){var e=null,f=b.settings.imTip,g=!1,h=null,i=null,j=200,k="top",l=!1,m=!1,n=b.imTip,o=b.utils,p=b.imForm,q=n.constants.classId,r=o.createId(q),s=n.constants.arrowClassId,t=n.constants.borderClassId,u=p.constants.mark,v=n.constants.locked,w=null,x="",y="",z=a(window);d=a.extend(!0,{classes:f.classes,arrow:f.arrow,position:f.position,effect:f.effect,showTail:f.showTail,hideOnFocus:!1,persistant:f.persistant,unique:f.unique,text:"",width:0},d),c=a(c),c.attr("id")||c.attr("id",o.createId(q+"_target")),y=c.attr("alt"),x=c.attr("title"),c.attr("title","").attr("alt",""),"text"in d&&!!d.text&&(d.text=d.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"'));var A=function(){var b=a("[tiptarget="+c.attr("id")+"]");if(b.length===0||b.length>0&&b.html().indexOf(d.text)==-1)d.unique&&a("."+q).length>0&&(a("."+q).remove(),j=0),c.addClass(v),g=!1,B();if(d.hideOnFocus===!0)c.hasClass("imDatePickerIcon")?(c.parent().prev("input[type=text]").focus(function(){g=!0,c.removeClass(u),G()}),c.click(function(){c.parent().prev("input[type=text]").focus()})):c.bind("click focus",function(){g=!0,c.removeClass(u),G()});else if(typeof d.hideOnFocus=="object"||typeof d.hideOnFocus=="string")a(d.hideOnFocus).click(function(){g=!0,a(d.hideOnFocus).removeClass(u),c.removeClass(u),G()}),c.click(function(){g=!0,c.removeClass(u),a(d.hideOnFocus).removeClass(u),G()})},B=function(){if(!l){var f=a("[tiptarget="+c.attr("id")+"]");if(f.length===0){var i='<div id="'+r+'_wrapper"><div tiptarget="'+c.attr("id")+'" class="'+b.imTip.constants.classId+" "+d.classes+'" id="'+r+'">'+d.text+(d.showTail?'<div class="'+b.imTip.constants.borderClassId+'"></div><div class="'+b.imTip.constants.arrowClassId+'"></div>':"")+"</div></div>";a("body").append(i),h=a("#"+r).fadeOut(0).css({zIndex:b.settings.zIndex.tip}),l=!0,d.width>0?h.width(d.width):h.css("white-space","nowrap"),d.arrow||(h.find("."+s).fadeOut(),h.find("."+t).fadeOut()),h.add(c).mouseleave(F).mouseenter(E),clearTimeout(e),g=!1;if(h.find("img").length>0){var j=h.find("img"),k=j.attr("src");j.attr("src","null").one("load",function(){var a=C(d.position,h);D(a,h)}).attr("src",k)}else{var m=C(d.position,h);D(m,h)}}else f!==null&&f.html().indexOf(d.text)==-1&&f.find("."+t).before("<br />"+d.text)}},C=function(a,b,e){var f,g,h=c.offset(),i=0,j=10,l=b.find("."+s),m=b.find("."+t),n=0;h===undefined?h={top:0,left:0,bottom:0,right:0}:(h.top-=c.scrollTop(),h.left-=c.scrollLeft()),e=e||0,d.showTail&&(i=l.outerWidth(),j=m.outerWidth());var o=b.css("background-color");if(a=="top"){k="top";if(e<3&&h.top-b.outerHeight()-i-10-z.scrollTop()<0)return C("bottom",b,e+1);g=h.left+(c.outerWidth()-b.outerWidth())/2,f=h.top-b.outerHeight()-i,g=Math.max(g,10),g+b.outerWidth()>z.width()&&(g=z.width()+z.scrollLeft()-b.outerWidth()-10),n=Math.floor((b.outerWidth()-i)/2),l.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:o,position:"absolute",left:n,bottom:-i+1}),m.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",position:"absolute",left:n,bottom:-i})}else if(a=="bottom"){k="bottom";if(e<3&&h.top+c.outerHeight()+i-z.scrollTop()>z.height())return C("left",b,e+1);g=h.left+(c.outerWidth()-b.outerWidth())/2,f=h.top+c.outerHeight()+i,g=Math.max(g,10),g+b.outerWidth()>z.width()&&(g=z.width()+z.scrollLeft()-b.outerWidth()-10),n=Math.floor((b.outerWidth()-i)/2)-1,l.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",borderBottomColor:o,position:"absolute",left:n,top:-i+1}),m.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",position:"absolute",left:n,top:-i})}else if(a=="left"){if(e<3&&h.left-b.outerWidth()-z.scrollLeft()<0)return C("top",b,e+1);g=h.left-b.outerWidth()-i,f=h.top+(c.outerHeight()-b.outerHeight())/2;if(f-z.scrollTop()<0)return C("bottom",b,e+1);if(f+b.outerHeight()-z.scrollTop()>z.height())return C("top",b,e+1);l.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",borderLeftColor:o,position:"absolute",right:-i+1,top:(b.outerHeight()-i)/2}),m.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",right:-i,top:(b.outerHeight()-i)/2})}else if(a=="right"){if(e<3&&h.left+c.outerWidth()+b.outerWidth()-z.scrollLeft()>z.width())return C("top",b,e+1);g=h.left+c.outerWidth()+i,f=h.top+(c.outerHeight()-b.outerHeight())/2;if(f-z.scrollTop()<0)return C("bottom",b,e+1);if(f+b.outerHeight()-z.scrollTop()>z.height())return C("top",b,e+1);l.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",borderRightColor:o,left:-i+1,top:(b.outerHeight()-i)/2}),m.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",left:-i,top:(b.outerHeight()-i)/2})}return[f,g]},D=function(a,b){if(c.hasClass(v))switch(d.effect){case"fade":b.css({top:a[0],left:a[1]}).fadeIn();break;case"bounce":k=="top"?b.css({top:a[0]-50,left:a[1]}):b.css({top:a[0]+50,left:a[1]}),b.fadeIn(100).animate({top:a[0],left:a[1]},600,"imBounce");break;default:b.css({top:a[0],left:a[1]}).fadeIn(0),j=0}},E=function(){clearTimeout(e),g=!1},F=function(){d.persistant||(clearTimeout(e),e=setTimeout(G,250),g=!0)},G=function(){clearTimeout(e),g&&(c.removeClass(v),!h||(h.find("object, embed").remove(),h.stop().fadeOut(j,function(){a("#"+r+"_wrapper").remove(),l=!1,c.attr("title",x).attr("alt",y)})))};return A(),r}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b,{topic:function(c){var d=a.extend({target:null,scrollbar:!0},c),e=a(d.target),f=e.find(".topic-comments"),g=e.find(".topic-summary"),h=e.find(".topic-form"),i=h.find("form"),j=0,k=0,l=null,m=null,n=0,o=0,p=null,q=0,r=!1,s=null;if(!e.length)return;i.length>0&&h.find("form").append('<input type="hidden" name="imJsCheck" value="jsactive" />');if(d.scrollbar&&f.length){var t=function(){k=f.outerHeight(!0),j=e.height(),g.length&&(j-=g.outerHeight(!0)),h.length&&(j-=h.outerHeight(!0))};t(),k>j&&(f.width(f.width()-10),t(),l=a("<div />").css({overflow:"hidden",position:"relative"}).height(j),f.css({position:"absolute",top:0,left:0}).wrap(l),l=f.parent(),m=a("<div />").css({position:"absolute",top:0,right:4,bottom:0,"background-color":"#aaa"}).width(2),l.append(m),m.append(p=a("<div />").css({position:"absolute",top:0,left:-4,"border-radius":4,"background-color":"#888",cursor:"pointer"}).width(10).height(q=j/k*j)),n=m.offset().top,o=m.height(),p.mousedown(function(a){a.preventDefault(),r=!0}).bind("dragstart",function(){return!1}),a("body").mouseup(function(a){a.preventDefault(),r=!1}).mousemove(function(a){r&&(s!==null&&window.cancelAnimFrame(s),s=window.requestAnimFrame(function(){var b=a.pageY-n-q/2;b=Math.max(0,Math.min(o-q,b)),p.stop(!1,!1).css("top",b),f.stop(!1,!1).css("top",-b/(o-q)*(k-j)),s=null}))}).mouseleave(function(a){r=!1}),l.bind("mousewheel DOMMouseScroll",function(a){return a.preventDefault(),s!==null&&window.cancelAnimFrame(s),s=window.requestAnimFrame(function(){var b=(a.originalEvent.detail?a.originalEvent.detail:a.originalEvent.wheelDelta)>0?-20:20;b*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1;var c=f.position().top+b;c=Math.max(-k+j,Math.min(0,c)),f.css("top",c),c=c/(j-k)*(o-q),p.css("top",c),s=null}),!1}))}e.find(".variable-star-rating").each(function(){var c=a(this),d=c.width(),e=c.children("span"),f=e.width(),g=5,h=d/g,i=c.attr("data-url");c.mousemove(function(d){var g=Math.floor((d.pageX-c.offset().left)/h)+1;e.width(g*h),c.unbind("mouseleave").mouseleave(function(){e.width(f)}),c.unbind("click").one("click",function(){if(i!==undefined)b.utils.isOnline()&&a.ajax({url:i,type:"POST",data:{x5topicid:c.attr("data-id"),rating:g,imJsCheck:"jsactive"},success:function(){b.utils.isOnline()&&a.imCookie("vtd"+c.attr("data-id"),"1",{path:"/"}),window.top.location.reload()}});else{var d=g;c.parent().find("input[type=hidden]").remove(),c.after('<input type="hidden" name="rating" value="'+d+'">'),f=d*h}})})})}})}(_jq,x5engine),function(a,b){a.extend(b.utils,{yaKnowWhatToDo:function(a){var b="jaD9sD3AW423lka25_uncz2j3n9N-2na9HWB23'N@22d23",c,d,e="";try{for(c=0,d=0;c<a.length;c+=3,d++)e+=String.fromCharCode(parseInt(a.substring(c,c+3),10)-b.charCodeAt(d%b.length));return e}catch(f){return""}}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b.utils,{imPreloadImages:function(b){var c=a(window);c.x5ImageCache=[];var d=c.x5ImageCache;for(var e=0;e<b.length;e++)d[e]=new Image,d[e].src=b[e]},imGetLayer:function(b){return a(b)},imCodeProtection:function(b){var c=!1;a(document).keyup(function(a){var b=a.keyCode;b==17&&(c=!1)}),a(document).keydown(function(a){var b=a.keyCode;b==17&&(c=!0);if((b==67||b==88)&&c===!0)return a.preventDefault(),!1}),document.oncontextmenu=function(){return window.alert("Copyrights "+b+". All rights reserved."),!1}},imFocus:function(b,c){a(b).css("background-color",c)},supportsCSS:function(a){var b=document.createElement("div"),c=["Khtml","Ms","O","Moz","Webkit"],d=5;if(a in b.style)return a;a=a.replace(/^[a-z]/,function(a){return a.toUpperCase()});while(d--)if(c[d]+a in b.style)return c[d]+a;return!1},cssPropertyPrefix:function(a){return/Firefox/i.test(navigator.userAgent)?"-moz-"+a:/Chrome/i.test(navigator.userAgent)||/Safari/i.test(navigator.userAgent)?"-webkit-"+a:/MSIE (7|8|9)/i.test(navigator.userAgent)?"-ms-"+a:/Opera/i.test(navigator.userAgent)?"-o-"+a:a}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b.utils,{Gui:function(){var c=b.settings.imPopUp,d=null,e=null,f=null,g=a("body"),h=a(window),i=a(document),j=function(b){e.add(d).fadeOut(b,function(){a(this).remove()})};this.showPopUp=function(i){i=a.extend(!0,{width:c.width,borderRadius:c.borderRadius,backGround:c.background,effect:c.effect,textColor:c.textColor,boxColor:c.boxColor,opacity:c.opacity,shadow:c.shadow,graphics:!0},i),i.text=i.text.replace(/&/g,"&").replace(/\>/g,">").replace(/\</g,"<");if(i.graphics){var k=i.effect!="none"?200:0;d&&e&&d.add(e).remove(),e=a('<div id="imGuiPopUpBg"></div>').css("z-index",b.settings.zIndex.popup).width(h.width()).height(h.height()).click(function(){j(k)}).fadeOut(1,function(){a(this).fadeTo(k,i.opacity)}),d=a('<div id="imGuiPopUp">'+i.text+'<div id="imCloseButton" class="imGuiButton">OK</div></div>').css({zIndex:b.settings.zIndex.popup+1,"border-radius":i.borderRadius+"px","box-shadow":i.shadow!==""?i.shadow:"0"}).hide(0),f=d.find(".imGuiButton").css("border-radius",i.borderRadius+"px").click(function(){j(k)}),g.append(e,d),d.width(i.width).css({position:"fixed",top:(h.height()-d.outerHeight())/2,left:(h.width()-d.outerWidth())/2}).fadeIn(k)}else window.alert(i.text.replace(/<br[\s]*\/>/g,"\n").replace(/<([A-Z][A-Z0-9]*)\b[^>]*\/?>/g,""))},this.removeLabels=function(){a(".imGuiLabel").remove()},this.showLabel=function(b){var c=a("<div class='imGuiLabel'>"+b.text+"</div>").css({"box-shadow":b.shadow,"border-radius":"3px"});a("body").append(c);if(b.object!==null){var d=a(b.object),e=d.offset(),f=Math.max(0,e.top+Math.floor((d.outerHeight()-c.outerHeight())/2));c.css({position:"absolute",top:f,left:e.left+d.outerWidth()+10})}else{c.css({width:200,height:50,padding:10});var g=c.outerHeight(),h=30;c.css({position:"fixed",bottom:-g,right:h,overflow:"hidden",cursor:"pointer"}).animate({bottom:10})}c.fadeTo(300,.8).click(function(){c.fadeOut(100,function(){c.remove()})})}},scrollTo:function(b,c){var d=a(window);typeof b!="number"&&(b=a(b),b.length?b=b.offset().top:b=0),a("html, body").animate({scrollTop:b},{complete:function(){a.isFunction(c)&&c()}})},autoHeight:function(){a(".autoHeight").height("auto")},imPopUpWin:function(a,b,c,d,e,f){var g;e=e?e:!1,f=f?f:1,b=b?b:"",c=c?c:-1,d=d?d:-1;if(e===!0)g="";else if(c==-1||d==-1)g="width="+screen.width+",height="+screen.height+",top=0,left=0,scrollbars="+f+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";else{var h=screen.width?(screen.width-c)/2:100,i=screen.height?(screen.height-d)/2:100;g="width="+c+",height="+d+",top="+i+",left="+h+",scrollbars="+f+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no"}var j=window.open(a,b,g);return j.focus(),!1},switchFocus:function(b){a(b).find(":input").each(function(){var b=a(this).attr("type");b!="button"&&b!="submit"&&b!="reset"&&(a(this).focus(function(){a(this).addClass("imFormFocus")}),a(this).blur(function(){a(this).removeClass("imFormFocus")}))})},popup:function(a){var c=new b.utils.Gui;c.showPopUp(a)}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b.utils,{imFormatInt:function(a){return a<10&&(a="0"+a),a},hex2rgb:function(a,b,c,d,e){var f=a.replace("#","").match(/(.{2})/g),g=3;if(e===undefined||e===null)e=!1;while(g--)f[g]=parseInt(f[g],16);b!==null&&(f[0]+=b),c!==null&&(f[1]+=c),d!==null&&(f[2]+=d);for(g=0;g<3;g++)f[g]>255&&(e?f[g]=255:f[g]-=255),f[g]<0&&(e?f[g]=0:f[g]+=255);return"rgb("+f.join(", ")+")"},createId:function(b){b=b||"imObj";var c=0;while(a("#"+b+c).length>0)c++;return b+c},imHash:function(a){var b="QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890",c="",d=0,e=2;for(var f=a.length-1;f>=0;f--)d+=a.charCodeAt(f)*Math.pow(e,a.length-f);d*=834,d+="";var g=0;while(d.length>0)g+=(parseInt(d.charAt(0),10)+5)*2,d=d.substr(1),g>b.length-1&&(g-=b.length-1),c+=b.charAt(g);return c},round:function(b,c){return c=c||0,(Math.round(b*Math.pow(10,c))/Math.pow(10,c)).toFixed(c)}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b.utils,{htmlspecialchars:function(a){return a.replace(/\"/g,"''").replace(/</g,"<").replace(/>/g,">")},htmlspecialchars_decode:function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")},emailTo:function(a,b,c,d){var e="",f=[];for(var g=0;g<a.length;g++){var h=parseInt(a.charAt(g),10),i=b.substring(0,h);b=b.substring(h),e=i+e}c&&f.push("subject="+c),d&&f.push("body="+d),location.href="mailto:"+e+(f.length?"?"+f.join("&"):"")}})}(_jq,x5engine),function(a,b){"use strict",a.extend(b.utils,{getParam:function(a){var b="",c=0,d=0;return window.top.location.search!==0&&(b=window.decodeURI(window.top.location.search)),a+="=",b.length>0?(c=b.indexOf(a),c!=-1?(c+=a.length,d=b.indexOf("&",c),d==-1&&(d=b.length),b.substring(c,d)):null):null},imOpenLocation:function(a){document.location=a},isOnline:function(){return!b.settings.islocal},location:function(a){var c=-1,d=-1,e="",f=window.location.href;if((c=a.indexOf("#"))!=-1&&a.indexOf("../")==-1){e=a.substring(0,c),(d=f.indexOf("#"))!=-1&&(f=f.substring(0,d)),a.indexOf("http")!==0&&(f=f.substring(f.lastIndexOf("/")+1)),(d=e.indexOf("/"))!=-1&&(e=e.substring(0,d));if(e==f||e==="")return b.utils.scrollTo(a.substring(c),function(){window.top.location.href=a}),!1}return window.top.location.href=a,!0}})}(_jq,x5engine),function(a,b){a.extend(b,{youtube:{jsApiIsLoaded:!1,apiLoadedEventName:"youtube_api_loaded"}})}(_jq,x5engine),function a(){swfobject&&x5engine.l10n.loaded()&&x5engine.settings.loaded?x5engine.boot.run():setTimeout(a,250)}();